Skip to content

Commit

Permalink
[nl] translate some tag templates in "Categorie:Lemmasjablonen"
Browse files Browse the repository at this point in the history
  • Loading branch information
xxyzz committed Oct 28, 2024
1 parent a565f5d commit 6ad8ca9
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 11 deletions.
5 changes: 0 additions & 5 deletions src/wiktextract/extractor/nl/pos.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,6 @@ def extract_pos_section_nodes(
)


# https://nl.wiktionary.org/wiki/Categorie:Lemmasjablonen
# https://nl.wiktionary.org/wiki/Categorie:Werkwoordsjablonen
GLOSS_TAG_TEMPLATES = frozenset(["auxl", "erga", "inerg"])


def extract_gloss_list_item(
wxr: WiktextractContext, word_entry: WordEntry, list_item: WikiNode
) -> None:
Expand Down
54 changes: 48 additions & 6 deletions src/wiktextract/extractor/nl/tags.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,32 @@
from .models import WordEntry

# https://nl.wiktionary.org/wiki/Categorie:Lemmasjablonen
# https://nl.wiktionary.org/wiki/Categorie:Werkwoordsjablonen
VERB_TAGS = {
"ergatief": "ergative", # Sjabloon:erga
"inergatief": "unergative", # Sjabloon:inerg
"hulpwerkwoord": "auxiliary", # Sjabloon:auxl
}
GLOSS_TAG_TEMPLATES = frozenset(
[
"absol",
"accus",
"auxl",
"copl",
"deponens",
"ditr",
"erga",
"inerg",
"intr",
"modl",
"onpr",
"ov",
"rcpq",
"refl",
"s-verb",
"plurt",
"singt",
"versterkend voorvoegsel",
]
)


# https://nl.wiktionary.org/wiki/Categorie:Werkwoordsjablonen
# https://nl.wiktionary.org/wiki/Categorie:WikiWoordenboek:Contextlabels
GLOSS_TAGS = {
"figuurlijk": "figuratively",
Expand Down Expand Up @@ -55,6 +75,23 @@
"zegswijze": "idiomatic",
"zeldzaam": "rare",
"Latijns-Amerika": "Latin-America",
"absoluut": "absolute", # Sjabloon:absol
"accusatief": "accusative", # Sjabloon:accus
"hulpwerkwoord": "auxiliary", # Sjabloon:auxl
"koppelwerkwoord": "copulative", # Sjabloon:copl
"deponens": "deponent",
"ditransitief": "ditransitive", # Sjabloon:ditr
"ergatief": "ergative", # Sjabloon:erga
"inergatief": "unergative", # Sjabloon:inerg
"onovergankelijk": "intransitive", # Sjabloon:intr
"modaal werkwoord": ["modal", "verb"], # Sjabloon:modl
"onpersoonlijk": "impersonal", # Sjabloon:onpr
"overgankelijk": "transitive", # Sjabloon:ov
"wederkerig": "reciprocal", # Sjabloon:rcpq
"wederkerend": "reflexive", # Sjabloon:refl
"alleen meervoud": "plural-only", # Sjabloon:plurt
"geen meervoud": "no-plural", # Sjabloon:singt
"versterkend voorvoegsel": ["intensifier", "prefix"],
}

TABLE_TAGS = {
Expand Down Expand Up @@ -89,7 +126,12 @@
}


TAGS = {**VERB_TAGS, **GLOSS_TAGS, **TABLE_TAGS}
HEADER_LINE_TAGS = {
"dim. tant.": ["diminutive", "noun"], # Sjabloon:dimt
}


TAGS = {**GLOSS_TAGS, **TABLE_TAGS, **HEADER_LINE_TAGS}

# https://nl.wiktionary.org/wiki/Categorie:WikiWoordenboek:Contextlabels
TOPICS = {
Expand Down

0 comments on commit 6ad8ca9

Please sign in to comment.