-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #512 from xxyzz/de
Move de edition title JSON files to Python code
- Loading branch information
Showing
12 changed files
with
150 additions
and
137 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
from wiktextract.config import POSSubtitleData | ||
|
||
# argument of title template https://de.wiktionary.org/wiki/Vorlage:Wortart | ||
POS_SECTIONS: POSSubtitleData = { | ||
"Abkürzung (Deutsch)": {"pos": "abbrev"}, | ||
"Abkürzung": {"pos": "abbrev"}, | ||
"Abtönungspartikel": {"pos": "particle"}, | ||
"Adjektiv ": {"pos": "adj"}, | ||
"Adjektiv": {"pos": "adj"}, | ||
"Adverb ": {"pos": "adv"}, | ||
"Adverb": {"pos": "adv"}, | ||
"Affix": {"pos": "affix"}, | ||
"Antwortpartikel": {"pos": "particle"}, | ||
"Artikel": {"pos": "det"}, | ||
"Bruchzahlwort": {"pos": "num"}, | ||
"Buchstabe": {"pos": "character"}, | ||
"Demonstrativpronomen": {"pos": "pron"}, | ||
"Eigenname ": {"pos": "name"}, | ||
"Eigenname": {"pos": "name"}, | ||
"Enklitikon": {"pos": "suffix"}, | ||
"Fokuspartikel": {"pos": "particle"}, | ||
"Formel": {"pos": "phrase"}, | ||
"Gebundenes Lexem": {"pos": "lexeme"}, | ||
"Geflügeltes Wort": {"pos": "phrase"}, | ||
"Gentilname": {"pos": "name"}, | ||
"Gradpartikel": {"pos": "particle"}, | ||
"Grußformel": {"pos": "phrase"}, | ||
"Hilfsverb": {"pos": "aux"}, | ||
"Hiragana": {"pos": "character"}, | ||
"Indefinitpronomen": {"pos": "pron"}, | ||
"Infinitiv ": {"pos": "verb"}, | ||
"Infinitiv": {"pos": "verb"}, | ||
"Infix": {"pos": "infix"}, | ||
"Interfix": {"pos": "interfix"}, | ||
"Interjektion": {"pos": "intj"}, | ||
"Interrogativadverb": {"pos": "adv"}, | ||
"Interrogativpronomen": {"pos": "pron"}, | ||
"Kardinalzahl": {"pos": "num"}, | ||
"Kausaladverb": {"pos": "adv"}, | ||
"Kognomen": {"pos": "nomen"}, | ||
"Konjunktion": {"pos": "conj"}, | ||
"Konjunktionaladverb": {"pos": "adv"}, | ||
"Kontraktion": {"pos": "abbrev"}, | ||
"Lokaladverb": {"pos": "adv"}, | ||
"Merkspruch": {"pos": "phrase"}, | ||
"Modaladverb": {"pos": "adv"}, | ||
"Modalpartikel": {"pos": "particle"}, | ||
"Nachname": {"pos": "name"}, | ||
"Negationspartikel": {"pos": "particle"}, | ||
"Numerale": {"pos": "num"}, | ||
"Onomatopoetikum": {"pos": "intj"}, | ||
"Ortsnamengrundwort": {"pos": "name"}, | ||
"Ordinalzahl": {"pos": "num"}, | ||
"Partikel": {"pos": "particle"}, | ||
"Partikelverb": {"pos": "verb"}, | ||
"Patronym": {"pos": "name"}, | ||
"Personalpronomen ": {"pos": "pron"}, | ||
"Personalpronomen": {"pos": "pron"}, | ||
"Possessivpronomen ": {"pos": "pron"}, | ||
"Possessivpronomen": {"pos": "pron"}, | ||
"Postposition": {"pos": "postp"}, | ||
"Präfix": {"pos": "prefix"}, | ||
"Präfixoid": {"pos": "prefix"}, | ||
"Präposition ": {"pos": "prep"}, | ||
"Präposition": {"pos": "prep"}, | ||
"Pronomen": {"pos": "pron"}, | ||
"Pronominaladverb": {"pos": "adv"}, | ||
"Redewendung": {"pos": "phrase"}, | ||
"Reflexives Personalpronomen": {"pos": "pron"}, | ||
"Reflexivpronomen": {"pos": "pron"}, | ||
"Relativpronomen": {"pos": "pron"}, | ||
"Reziprokpronomen": {"pos": "pron"}, | ||
"Schriftzeichen": {"pos": "character"}, | ||
"Sprichwort": {"pos": "phrase"}, | ||
"Straßenname": {"pos": "name"}, | ||
"Subjunktion": {"pos": "conj"}, | ||
"Substantiv": {"pos": "noun"}, | ||
"Suffix": {"pos": "suffix"}, | ||
"Suffixoid": {"pos": "suffix"}, | ||
"Symbol": {"pos": "symbol"}, | ||
"Temporaladverb": {"pos": "adv"}, | ||
"Temporaldverb": {"pos": "adv"}, | ||
"Toponym": {"pos": "name"}, | ||
"Verb": {"pos": "verb"}, | ||
"Vergleichspartikel": {"pos": "particle"}, | ||
"Vervielfältigungszahlwort": {"pos": "num"}, | ||
"Vorname": {"pos": "name"}, | ||
"Wiederholungszahlwort": {"pos": "num"}, | ||
"Wortverbindung": {"pos": "phrase"}, | ||
"Zahlklassifikator": {"pos": "noun"}, | ||
"Zahlzeichen": {"pos": "num"}, | ||
"Zirkumfix": {"pos": "circumfix"}, | ||
"Zirkumposition": {"pos": "circumpos"}, | ||
} | ||
|
||
LINKAGE_TITLES: dict[str, str] = { | ||
"Gegenwörter": "antonyms", | ||
"Holonyme": "holonyms", | ||
"Oberbegriffe": "hypernyms", | ||
"Redewendungen": "expressions", | ||
"Sinnverwandte Wörter": "coordinate_terms", | ||
"Sprichwörter": "proverbs", | ||
"Synonyme": "synonyms", | ||
"Unterbegriffe": "hyponyms", | ||
"Wortbildungen": "derived", | ||
} | ||
|
||
ETYMOLOGY_TITLES: frozenset[str] = frozenset(["Herkunft"]) | ||
|
||
PRONUNCIATION_TITLES: frozenset[str] = frozenset(["Aussprache"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.