Coverage for src/wiktextract/extractor/es/section_titles.py: 100%
5 statements
« prev ^ index » next coverage.py v7.6.10, created at 2024-12-27 08:07 +0000
« prev ^ index » next coverage.py v7.6.10, created at 2024-12-27 08:07 +0000
1from ...config import POSSubtitleData
3# some are template names
4POS_TITLES: dict[str, POSSubtitleData] = {
5 "abreviatura": {"pos": "abbrev"},
6 "acrónimo": {"pos": "abbrev"},
7 "adjetivo cardinal": {"pos": "num", "tags": ["cardinal"]},
8 "adjetivo demostrativo": {"pos": "adj", "tags": ["demonstrative"]},
9 "adjetivo indefinido": {"pos": "adj", "tags": ["indefinite"]},
10 "adjetivo indeterminado": {"pos": "adj", "tags": ["indeterminate"]},
11 "adjetivo interrogativo": {"pos": "adj", "tags": ["interrogative"]},
12 "adjetivo numeral": {"pos": "num", "tags": ["numeral"]},
13 "adjetivo ordinal": {"pos": "num", "tags": ["ordinal"]},
14 "adjetivo posesivo": {"pos": "adj", "tags": ["possessive"]},
15 "adjetivo relativo": {"pos": "adj", "tags": ["relative"]},
16 "adjetivo": {"pos": "adj"},
17 "adjetivos": {"pos": "adj"},
18 "adverbio comparativo": {"pos": "adv", "tags": ["comparative"]},
19 "adverbio de afirmación": {"pos": "adv", "tags": ["affirmative"]},
20 "adverbio de cantidad": {"pos": "adv", "tags": ["quantitative"]},
21 "adverbio de duda": {"pos": "adv"},
22 "adverbio de lugar": {"pos": "adv", "tags": ["place"]},
23 "adverbio de modo": {"pos": "adv", "tags": ["mood"]},
24 "adverbio de negación": {"pos": "adv", "tags": ["negative"]},
25 "adverbio de orden": {"pos": "adv", "tags": ["order"]},
26 "adverbio de tiempo": {"pos": "adv"},
27 "adverbio demostrativo": {"pos": "adv", "tags": ["demonstrative"]},
28 "adverbio interrogativo": {"pos": "adv", "tags": ["interrogative"]},
29 "adverbio relativo": {"pos": "adv", "tags": ["relative"]},
30 "adverbio": {"pos": "adv"},
31 "adverbios": {"pos": "adv"},
32 "afijo": {"pos": "affix"},
33 "antropónimo": {"pos": "name"},
34 "artículo determinado": {"pos": "article", "tags": ["determinate"]},
35 "artículo indeterminado": {"pos": "article", "tags": ["indeterminate"]},
36 "artículo": {"pos": "article"},
37 "caracteres han": {"pos": "character"},
38 "circunfijo": {"pos": "circumfix"},
39 "conjunción adversativa": {"pos": "conj", "tags": ["adversative"]},
40 "conjunción ilativa": {"pos": "conj", "tags": ["illative"]},
41 "conjunción": {"pos": "conj"},
42 "contracción": {"pos": "contraction", "tags": ["contraction"]},
43 "dígrafo": {"pos": "character"},
44 "expresión": {"pos": "phrase"},
45 "forma adjetiva": {"pos": "adj", "tags": ["form-of"]},
46 "forma de participio": {"pos": "participle", "tags": ["form-of"]},
47 "forma de sufijo": {"pos": "suffix", "tags": ["form-of"]},
48 "forma flexiva": {"pos": "verb", "tags": ["form-of"]},
49 "forma pronominal": {"pos": "pron", "tags": ["form-of"]},
50 "forma sustantiva femenina": {
51 "pos": "noun",
52 "tags": ["form-of", "feminine"],
53 },
54 "forma sustantiva masculina": {
55 "pos": "noun",
56 "tags": ["form-of", "masculine"],
57 },
58 "forma sustantiva neutra": {"pos": "noun", "tags": ["form-of", "neuter"]},
59 "forma sustantiva": {"pos": "noun", "tags": ["form-of"]},
60 "forma sustantiva plural": {"pos": "noun", "tags": ["form-of", "plural"]},
61 "forma verbal": {"pos": "verb", "tags": ["form-of"]},
62 "infijo": {"pos": "infix", "tags": ["morpheme"]},
63 "interjección": {"pos": "intj"},
64 "letra": {"pos": "character"},
65 "locución adjetiva": {"pos": "phrase", "tags": ["adjective"]},
66 "locución adverbial": {"pos": "phrase", "tags": ["adverbial"]},
67 "locución conjuntiva": {"pos": "phrase", "tags": ["conjunctive"]},
68 "locución interjectiva": {"pos": "phrase", "tags": ["interjection"]},
69 "locución prepositiva": {"pos": "phrase", "tags": ["prepositional"]},
70 "locución pronominal": {"pos": "phrase", "tags": ["pronominal"]},
71 "locución sustantiva": {"pos": "phrase"},
72 "locución verbal": {"pos": "phrase"},
73 "locución": {"pos": "phrase"},
74 "nombre propios": {"pos": "name"},
75 "onomatopeya": {"pos": "noun"},
76 "partícula": {"pos": "particle"},
77 "postposición": {"pos": "postp"},
78 "prefijo": {"pos": "prefix"},
79 "preposición de ablativo": {"pos": "prep", "tags": ["ablative"]},
80 "preposición de acusativo o ablativo": {
81 "pos": "prep",
82 "tags": ["accusative", "ablative"],
83 },
84 "preposición de acusativo": {"pos": "prep", "tags": ["accusative"]},
85 "preposición de genitivo": {"pos": "prep", "tags": ["genitive"]},
86 "preposición": {"pos": "prep"},
87 "pronombre demostrativo": {"pos": "pron", "tags": ["demonstrative"]},
88 "pronombre indefinido": {"pos": "pron", "tags": ["indefinite"]},
89 "pronombre interrogativo": {"pos": "pron", "tags": ["interrogative"]},
90 "pronombre personal": {"pos": "pron", "tags": ["personal"]},
91 "pronombre posesivo": {"pos": "pron", "tags": ["possessive"]},
92 "pronombre relativo": {"pos": "pron", "tags": ["relative"]},
93 "pronombre": {"pos": "pron"},
94 "refrán": {"pos": "proverb"},
95 "sigla": {"pos": "abbrev"},
96 "símbolo": {"pos": "symbol"},
97 "sufijo flexivo": {"pos": "suffix"},
98 "sufijo": {"pos": "suffix"},
99 "sustantivo ambiguo": {"pos": "noun", "tags": ["masculine", "feminine"]},
100 "sustantivo animado": {"pos": "noun", "tags": ["animate"]},
101 "sustantivo común": {"pos": "noun"},
102 "sustantivo femenino y masculino": {
103 "pos": "noun",
104 "tags": ["masculine", "feminine"],
105 },
106 "sustantivo femenino": {"pos": "noun", "tags": ["feminine"]},
107 "sustantivo inanimado": {"pos": "noun", "tags": ["inanimate"]},
108 "sustantivo masculino": {"pos": "noun", "tags": ["masculine"]},
109 "sustantivo neutro y masculino": {
110 "pos": "noun",
111 "tags": ["neuter", "masculine"],
112 },
113 "sustantivo neutro": {"pos": "noun", "tags": ["neuter"]},
114 "sustantivo propio": {"pos": "name"},
115 "sustantivo propio/pruebas": {"pos": "name"},
116 "sustantivo": {"pos": "noun"},
117 "verbo auxiliar": {"pos": "verb", "tags": ["auxiliary"]},
118 "verbo impersonal": {"pos": "verb", "tags": ["impersonal"]},
119 "verbo intransitivo": {"pos": "verb", "tags": ["intransitive"]},
120 "verbo modal": {"pos": "verb", "tags": ["modal"]},
121 "verbo perfectivo": {"pos": "verb", "tags": ["perfective"]},
122 "verbo pronominal": {"pos": "verb", "tags": ["pronominal"]},
123 "verbo transitivo": {"pos": "verb", "tags": ["transitive"]},
124 "verbo": {"pos": "verb"},
125}
127LINKAGE_TITLES: dict[str, str] = {
128 "antónimo": "antonyms",
129 "compuestos": "compounds",
130 "derivad": "derived",
131 "hipónimo": "hyponyms",
132 "hiperónimo": "hypernyms",
133 "merónimo": "meronyms",
134 "locucion": "idioms",
135 "locuciones": "idioms",
136 "relacionado": "related",
137 "refranes": "proverbs",
138 "sinónimo": "synonyms",
139}
141IGNORED_TITLES: frozenset[str] = frozenset(["véase también"])
143TRANSLATIONS_TITLES: frozenset[str] = frozenset(["traducciones", "traducción"])