Added loader and files
Browse files- .gitattributes +2 -0
- icelandic-error-corpus-IceEC.py +855 -0
- test.json +3 -0
- train.json +3 -0
.gitattributes
CHANGED
@@ -35,3 +35,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
35 |
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
36 |
*.ogg filter=lfs diff=lfs merge=lfs -text
|
37 |
*.wav filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
35 |
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
36 |
*.ogg filter=lfs diff=lfs merge=lfs -text
|
37 |
*.wav filter=lfs diff=lfs merge=lfs -text
|
38 |
+
test.json filter=lfs diff=lfs merge=lfs -text
|
39 |
+
train.json filter=lfs diff=lfs merge=lfs -text
|
icelandic-error-corpus-IceEC.py
ADDED
@@ -0,0 +1,855 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import json
|
2 |
+
|
3 |
+
import datasets
|
4 |
+
|
5 |
+
|
6 |
+
# collected from errorCodes.tsv -- see https://github.com/antonkarl/iceErrorCorpus
|
7 |
+
ERROR_INFORMATION = {'dem4noun': {'category': 'coherence',
|
8 |
+
'subcategory': 'accuracy',
|
9 |
+
'description': 'A demonstrative pronoun used where a noun should be'},
|
10 |
+
'noun4dem': {'category': 'coherence',
|
11 |
+
'subcategory': 'accuracy',
|
12 |
+
'description': 'A noun used where a demonstrative pronoun should be'},
|
13 |
+
'dem-pro': {'category': 'coherence',
|
14 |
+
'subcategory': 'pro',
|
15 |
+
'description': 'An incorrect demonstrative pronoun used'},
|
16 |
+
'dem4pers': {'category': 'coherence',
|
17 |
+
'subcategory': 'pro',
|
18 |
+
'description': 'A demonstrative pronoun used where a personal pronoun should be used'},
|
19 |
+
'noun4pro': {'category': 'coherence',
|
20 |
+
'subcategory': 'pro',
|
21 |
+
'description': 'A noun used where a pronoun should be used'},
|
22 |
+
'pers4dem': {'category': 'coherence',
|
23 |
+
'subcategory': 'pro',
|
24 |
+
'description': 'A personal pronoun used instead of a demonstrative pronoun'},
|
25 |
+
'pro4noun': {'category': 'coherence',
|
26 |
+
'subcategory': 'pro',
|
27 |
+
'description': 'A pronoun used where a noun should be used'},
|
28 |
+
'pro4reflexive': {'category': 'coherence',
|
29 |
+
'subcategory': 'pro',
|
30 |
+
'description': 'A personal pronoun used instead of a reflexive pronoun'},
|
31 |
+
'reflexive4noun': {'category': 'coherence',
|
32 |
+
'subcategory': 'pro',
|
33 |
+
'description': 'A reflexive pronoun used instead of a noun'},
|
34 |
+
'reflexive4pro': {'category': 'coherence',
|
35 |
+
'subcategory': 'pro',
|
36 |
+
'description': 'A reflexive pronoun used instead of a personal pronoun'},
|
37 |
+
'dir4loc': {'category': 'coherence',
|
38 |
+
'subcategory': 'reference',
|
39 |
+
'description': 'Directional instead of locative'},
|
40 |
+
'loc4dir': {'category': 'coherence',
|
41 |
+
'subcategory': 'reference',
|
42 |
+
'description': 'Locative instead of directional'},
|
43 |
+
'agreement': {'category': 'grammar',
|
44 |
+
'subcategory': 'agreement',
|
45 |
+
'description': 'A finite verb not in agreement with a noun phrase'},
|
46 |
+
'agreement-concord': {'category': 'grammar',
|
47 |
+
'subcategory': 'agreement',
|
48 |
+
'description': 'An error in agreement within a noun phrase'},
|
49 |
+
'agreement-pred': {'category': 'grammar',
|
50 |
+
'subcategory': 'agreement',
|
51 |
+
'description': 'A predicate not in agreement with its subject'},
|
52 |
+
'agreement-pro': {'category': 'grammar',
|
53 |
+
'subcategory': 'agreement',
|
54 |
+
'description': 'A pronoun not in agreement with its antecedent'},
|
55 |
+
'marked4unmarked': {'category': 'grammar',
|
56 |
+
'subcategory': 'agreement',
|
57 |
+
'description': 'A marked grammatical gender used instead of the unmarked one, the feminine or neuter used instead of masculine'},
|
58 |
+
'cont4simple': {'category': 'grammar',
|
59 |
+
'subcategory': 'aspect',
|
60 |
+
'description': 'A verb in the continuous tense which should be in the simple tense'},
|
61 |
+
'perfect4tense': {'category': 'grammar',
|
62 |
+
'subcategory': 'aspect',
|
63 |
+
'description': 'A verb in the perfect aspect which should be in the present or past tense'},
|
64 |
+
'simple4cont': {'category': 'grammar',
|
65 |
+
'subcategory': 'aspect',
|
66 |
+
'description': 'A verb in the simple tense which should be in the continuous tense'},
|
67 |
+
'tense4perfect': {'category': 'grammar',
|
68 |
+
'subcategory': 'aspect',
|
69 |
+
'description': 'A verb in the present or past tense which should be in the perfect aspect'},
|
70 |
+
'extra-munu': {'category': 'grammar',
|
71 |
+
'subcategory': 'aux',
|
72 |
+
'description': 'Redundant verb ‘munu’ used'},
|
73 |
+
'geta': {'category': 'grammar',
|
74 |
+
'subcategory': 'aux',
|
75 |
+
'description': 'The verb ‘geta’ used with an infinitive or a verb in the present tense'},
|
76 |
+
'acc4nom-sub': {'category': 'grammar',
|
77 |
+
'subcategory': 'case',
|
78 |
+
'description': 'A subject in the accusative case which should be in the nominative case'},
|
79 |
+
'case-adj': {'category': 'grammar',
|
80 |
+
'subcategory': 'case',
|
81 |
+
'description': 'A word whose case is governed by an adjective is not in the correct case'},
|
82 |
+
'case-collocation': {'category': 'grammar',
|
83 |
+
'subcategory': 'case',
|
84 |
+
'description': 'Incorrect case within a collocation'},
|
85 |
+
'case-prep': {'category': 'grammar',
|
86 |
+
'subcategory': 'case',
|
87 |
+
'description': 'A word whose case is governed by a preposition is not in the correct case'},
|
88 |
+
'case-verb': {'category': 'grammar',
|
89 |
+
'subcategory': 'case',
|
90 |
+
'description': 'A word whose case is governed by a verb is not in the correct case'},
|
91 |
+
'dative-sub': {'category': 'grammar',
|
92 |
+
'subcategory': 'case',
|
93 |
+
'description': 'A subject incorrectly in the dative case'},
|
94 |
+
'nom4acc-sub': {'category': 'grammar',
|
95 |
+
'subcategory': 'case',
|
96 |
+
'description': 'A subject in the nominal case which should be in the accusative case'},
|
97 |
+
'conjunction': {'category': 'grammar',
|
98 |
+
'subcategory': 'conjunction',
|
99 |
+
'description': 'A conjunction used incorrectly'},
|
100 |
+
'def4ind': {'category': 'grammar',
|
101 |
+
'subcategory': 'definitiveness',
|
102 |
+
'description': 'An definite word which should be indefinite'},
|
103 |
+
'extra-dem-pro': {'category': 'grammar',
|
104 |
+
'subcategory': 'definitiveness',
|
105 |
+
'description': 'A redundant demonstrative pronoun'},
|
106 |
+
'ind4def': {'category': 'grammar',
|
107 |
+
'subcategory': 'definitiveness',
|
108 |
+
'description': 'An indefinite word which should be definite'},
|
109 |
+
'missing-dem-pro': {'category': 'grammar',
|
110 |
+
'subcategory': 'definitiveness',
|
111 |
+
'description': 'A demonstrative pronoun missing'},
|
112 |
+
'adjective-inflection': {'category': 'grammar',
|
113 |
+
'subcategory': 'inflection',
|
114 |
+
'description': 'An adjective inflected incorrectly'},
|
115 |
+
'gen-escape': {'category': 'grammar',
|
116 |
+
'subcategory': 'inflection',
|
117 |
+
'description': 'A noun which should be in the genitive case is incorrectly in another case'},
|
118 |
+
'genitive': {'category': 'grammar',
|
119 |
+
'subcategory': 'inflection',
|
120 |
+
'description': 'Errors related to the genitive case'},
|
121 |
+
'nominal-inflection': {'category': 'grammar',
|
122 |
+
'subcategory': 'inflection',
|
123 |
+
'description': 'A noun inflected incorrectly, i.e. the inflection form exists but does not fit in the sentence'},
|
124 |
+
'numeral-inflection': {'category': 'grammar',
|
125 |
+
'subcategory': 'inflection',
|
126 |
+
'description': 'A numeral inflected incorrectly'},
|
127 |
+
'pro-inflection': {'category': 'grammar',
|
128 |
+
'subcategory': 'inflection',
|
129 |
+
'description': 'A pronoun inflected incorrectly'},
|
130 |
+
'verb-inflection': {'category': 'grammar',
|
131 |
+
'subcategory': 'inflection',
|
132 |
+
'description': 'A verb inflected incorrectly'},
|
133 |
+
'want': {'category': 'grammar',
|
134 |
+
'subcategory': 'inflection',
|
135 |
+
'description': 'The third person singular ‘vill’ used where the first person singular ‘vil’ should be used, and the opposite'},
|
136 |
+
'extra-prep': {'category': 'grammar',
|
137 |
+
'subcategory': 'insertion',
|
138 |
+
'description': 'A redundant preposition'},
|
139 |
+
'ind4sub': {'category': 'grammar',
|
140 |
+
'subcategory': 'mood',
|
141 |
+
'description': 'A verb in the indicative mood which should be in the subjunctive mood'},
|
142 |
+
'sub4ind': {'category': 'grammar',
|
143 |
+
'subcategory': 'mood',
|
144 |
+
'description': 'A verb in the subjunctive mood which should be in the indicative mood'},
|
145 |
+
'missing-prep': {'category': 'grammar',
|
146 |
+
'subcategory': 'omission',
|
147 |
+
'description': 'A preposition missing'},
|
148 |
+
'að4af': {'category': 'grammar',
|
149 |
+
'subcategory': 'prep',
|
150 |
+
'description': 'The preposition ‘að’ used instead of the preposition ‘af’'},
|
151 |
+
'af4að': {'category': 'grammar',
|
152 |
+
'subcategory': 'prep',
|
153 |
+
'description': 'The preposition ‘af’ used instead of the preposition ‘að’'},
|
154 |
+
'wrong-prep': {'category': 'grammar',
|
155 |
+
'subcategory': 'prep',
|
156 |
+
'description': 'An incorrect preposition used'},
|
157 |
+
'adj4adv': {'category': 'grammar',
|
158 |
+
'subcategory': 'syntax',
|
159 |
+
'description': 'An adjective used where an adverb should be'},
|
160 |
+
'adv4adj': {'category': 'grammar',
|
161 |
+
'subcategory': 'syntax',
|
162 |
+
'description': 'An adverb used where an adjective should be'},
|
163 |
+
'each': {'category': 'grammar',
|
164 |
+
'subcategory': 'syntax',
|
165 |
+
'description': 'An error in reciprocal pronouns'},
|
166 |
+
'extra-fin-verb': {'category': 'grammar',
|
167 |
+
'subcategory': 'syntax',
|
168 |
+
'description': 'persónubeygðri sögn ofaukið'},
|
169 |
+
'extra-inf-part': {'category': 'grammar',
|
170 |
+
'subcategory': 'syntax',
|
171 |
+
'description': 'A redundant infinitive particle'},
|
172 |
+
'extra-sub': {'category': 'grammar',
|
173 |
+
'subcategory': 'syntax',
|
174 |
+
'description': 'A redundant subject'},
|
175 |
+
'loan-syntax': {'category': 'grammar',
|
176 |
+
'subcategory': 'syntax',
|
177 |
+
'description': 'Syntax borrowed from another language'},
|
178 |
+
'missing-fin-verb': {'category': 'grammar',
|
179 |
+
'subcategory': 'syntax',
|
180 |
+
'description': 'A finite verb missing from a sentence'},
|
181 |
+
'missing-inf-part': {'category': 'grammar',
|
182 |
+
'subcategory': 'syntax',
|
183 |
+
'description': 'An infinitive particle missing'},
|
184 |
+
'missing-obj': {'category': 'grammar',
|
185 |
+
'subcategory': 'syntax',
|
186 |
+
'description': 'An object missing from a clause'},
|
187 |
+
'missing-sub': {'category': 'grammar',
|
188 |
+
'subcategory': 'syntax',
|
189 |
+
'description': 'A subject missing from a clause'},
|
190 |
+
'new-passive': {'category': 'grammar',
|
191 |
+
'subcategory': 'syntax',
|
192 |
+
'description': 'The new passive construction used'},
|
193 |
+
'syntax-other': {'category': 'grammar',
|
194 |
+
'subcategory': 'syntax',
|
195 |
+
'description': 'An error relating to syntax'},
|
196 |
+
'v3': {'category': 'grammar',
|
197 |
+
'subcategory': 'syntax',
|
198 |
+
'description': 'A verb incorrectly in the third position'},
|
199 |
+
'v3-subordinate': {'category': 'grammar',
|
200 |
+
'subcategory': 'syntax',
|
201 |
+
'description': 'A verb incorrectly in the third position in a subordinate clause'},
|
202 |
+
'past4pres': {'category': 'grammar',
|
203 |
+
'subcategory': 'tense',
|
204 |
+
'description': 'A verb in the past tense which should be in the present tense'},
|
205 |
+
'pres4past': {'category': 'grammar',
|
206 |
+
'subcategory': 'tense',
|
207 |
+
'description': 'A verb in the present tense which should be in the past tense'},
|
208 |
+
'act4mid': {'category': 'grammar',
|
209 |
+
'subcategory': 'voice',
|
210 |
+
'description': 'A verb in active voice which should be in middle voice'},
|
211 |
+
'act4pass': {'category': 'grammar',
|
212 |
+
'subcategory': 'voice',
|
213 |
+
'description': 'A verb in active voice which should be in passive voice'},
|
214 |
+
'mid4act': {'category': 'grammar',
|
215 |
+
'subcategory': 'voice',
|
216 |
+
'description': 'A verb in middle voice which should be in active voice'},
|
217 |
+
'mid4pass': {'category': 'grammar',
|
218 |
+
'subcategory': 'voice',
|
219 |
+
'description': 'A verb in middle voice which should be in passive voice'},
|
220 |
+
'pass4act': {'category': 'grammar',
|
221 |
+
'subcategory': 'voice',
|
222 |
+
'description': 'A verb in passive voice which should be in active voice'},
|
223 |
+
'pass4mid': {'category': 'grammar',
|
224 |
+
'subcategory': 'voice',
|
225 |
+
'description': 'A verb in passive voice which should be in middle voice'},
|
226 |
+
'passive': {'category': 'grammar',
|
227 |
+
'subcategory': 'voice',
|
228 |
+
'description': 'The passive construction incorrectly formed'},
|
229 |
+
'caps4low': {'category': 'orthography',
|
230 |
+
'subcategory': 'capitalization',
|
231 |
+
'description': 'An uppercase letter which should be lowercase'},
|
232 |
+
'low4caps': {'category': 'orthography',
|
233 |
+
'subcategory': 'capitalization',
|
234 |
+
'description': 'An lowercase letter which should be uppercase'},
|
235 |
+
'lower4upper-acro': {'category': 'orthography',
|
236 |
+
'subcategory': 'capitalization',
|
237 |
+
'description': 'A lowercase letter in an acronym which should be upper case'},
|
238 |
+
'lower4upper-initial': {'category': 'orthography',
|
239 |
+
'subcategory': 'capitalization',
|
240 |
+
'description': 'A lowercase letter at the beginning of a sentence which should be upper case'},
|
241 |
+
'lower4upper-proper': {'category': 'orthography',
|
242 |
+
'subcategory': 'capitalization',
|
243 |
+
'description': 'A lowercase letter at the beginning of a proper noun which should be upper case'},
|
244 |
+
'upper4lower-common': {'category': 'orthography',
|
245 |
+
'subcategory': 'capitalization',
|
246 |
+
'description': 'An uppercase letter in a common noun which should be lowercase'},
|
247 |
+
'upper4lower-noninitial': {'category': 'orthography',
|
248 |
+
'subcategory': 'capitalization',
|
249 |
+
'description': 'An uppercase letter not at the beginning of a sentence which should be lowercase'},
|
250 |
+
'upper4lower-proper': {'category': 'orthography',
|
251 |
+
'subcategory': 'capitalization',
|
252 |
+
'description': 'An uppercase letter in a proper noun which should be lowercase'},
|
253 |
+
'foreign-error': {'category': 'orthography',
|
254 |
+
'subcategory': 'foreign',
|
255 |
+
'description': 'An error in a foreign word'},
|
256 |
+
'foreign-name': {'category': 'orthography',
|
257 |
+
'subcategory': 'foreign',
|
258 |
+
'description': 'An error in a foreign name'},
|
259 |
+
'compound-collocation': {'category': 'orthography',
|
260 |
+
'subcategory': 'nonword',
|
261 |
+
'description': 'A compound word not formed according to tradition'},
|
262 |
+
'nonword': {'category': 'orthography',
|
263 |
+
'subcategory': 'nonword',
|
264 |
+
'description': 'A word which does not exist'},
|
265 |
+
'abbreviation': {'category': 'orthography',
|
266 |
+
'subcategory': 'punctuation',
|
267 |
+
'description': 'Various errors in abbreviations'},
|
268 |
+
'abbreviation-period': {'category': 'orthography',
|
269 |
+
'subcategory': 'punctuation',
|
270 |
+
'description': 'Incorrect use of a period in an abbreviation'},
|
271 |
+
'bracket4comma': {'category': 'orthography',
|
272 |
+
'subcategory': 'punctuation',
|
273 |
+
'description': 'A bracket used where a comma should be'},
|
274 |
+
'bracket4period': {'category': 'orthography',
|
275 |
+
'subcategory': 'punctuation',
|
276 |
+
'description': 'A bracket used where a period should be'},
|
277 |
+
'bracket4square': {'category': 'orthography',
|
278 |
+
'subcategory': 'punctuation',
|
279 |
+
'description': 'A bracket used where a square bracket should be'},
|
280 |
+
'colon4comma': {'category': 'orthography',
|
281 |
+
'subcategory': 'punctuation',
|
282 |
+
'description': 'A colon used where a comma should be'},
|
283 |
+
'colon4period': {'category': 'orthography',
|
284 |
+
'subcategory': 'punctuation',
|
285 |
+
'description': 'A colon used where a period should be'},
|
286 |
+
'colon4semicolon': {'category': 'orthography',
|
287 |
+
'subcategory': 'punctuation',
|
288 |
+
'description': 'A colon used where a semicolon should be'},
|
289 |
+
'comma-plus-conjunction': {'category': 'orthography',
|
290 |
+
'subcategory': 'punctuation',
|
291 |
+
'description': 'A comma incorrectly used before a conjunction'},
|
292 |
+
'comma4bracket': {'category': 'orthography',
|
293 |
+
'subcategory': 'punctuation',
|
294 |
+
'description': 'A comma used where a bracket should be'},
|
295 |
+
'comma4colon': {'category': 'orthography',
|
296 |
+
'subcategory': 'punctuation',
|
297 |
+
'description': 'A comma used where a colon should be'},
|
298 |
+
'comma4conjunction': {'category': 'orthography',
|
299 |
+
'subcategory': 'punctuation',
|
300 |
+
'description': 'A comma used where a conjunction should be'},
|
301 |
+
'comma4dash': {'category': 'orthography',
|
302 |
+
'subcategory': 'punctuation',
|
303 |
+
'description': 'A comma used where a dash should be'},
|
304 |
+
'comma4ex': {'category': 'orthography',
|
305 |
+
'subcategory': 'punctuation',
|
306 |
+
'description': 'A comma used where an exclamation mark should be'},
|
307 |
+
'comma4period': {'category': 'orthography',
|
308 |
+
'subcategory': 'punctuation',
|
309 |
+
'description': 'A comma used where a period should be'},
|
310 |
+
'comma4qm': {'category': 'orthography',
|
311 |
+
'subcategory': 'punctuation',
|
312 |
+
'description': 'A comma used where a question mark should be'},
|
313 |
+
'comma4semicolon': {'category': 'orthography',
|
314 |
+
'subcategory': 'punctuation',
|
315 |
+
'description': 'A comma used where a semicolon should be'},
|
316 |
+
'conjunction-drop': {'category': 'orthography',
|
317 |
+
'subcategory': 'punctuation',
|
318 |
+
'description': 'A longer form of a word than necessary is used in contraction'},
|
319 |
+
'conjunction4comma': {'category': 'orthography',
|
320 |
+
'subcategory': 'punctuation',
|
321 |
+
'description': 'A conjunction used where a comma should be'},
|
322 |
+
'conjunction4period': {'category': 'orthography',
|
323 |
+
'subcategory': 'punctuation',
|
324 |
+
'description': 'A conjunction used where a period should be'},
|
325 |
+
'conjunction4qm': {'category': 'orthography',
|
326 |
+
'subcategory': 'punctuation',
|
327 |
+
'description': 'A conjunction used where a question mark should be'},
|
328 |
+
'conjunction4semicolon': {'category': 'orthography',
|
329 |
+
'subcategory': 'punctuation',
|
330 |
+
'description': 'A conjunction used instead of a semicolon'},
|
331 |
+
'date-abbreviation': {'category': 'orthography',
|
332 |
+
'subcategory': 'punctuation',
|
333 |
+
'description': 'Date abbreviated incorrectly'},
|
334 |
+
'dots4comma': {'category': 'orthography',
|
335 |
+
'subcategory': 'punctuation',
|
336 |
+
'description': 'Three dots used where a comma should be'},
|
337 |
+
'dots4period': {'category': 'orthography',
|
338 |
+
'subcategory': 'punctuation',
|
339 |
+
'description': 'Three dots used where a period should be'},
|
340 |
+
'double-punctuation': {'category': 'orthography',
|
341 |
+
'subcategory': 'punctuation',
|
342 |
+
'description': 'Double punctuation incorrectly used'},
|
343 |
+
'emdash4endash': {'category': 'orthography',
|
344 |
+
'subcategory': 'punctuation',
|
345 |
+
'description': 'An em dash used where an en dash should be'},
|
346 |
+
'emdash4hyphen': {'category': 'orthography',
|
347 |
+
'subcategory': 'punctuation',
|
348 |
+
'description': 'An em dash used where a hyphen should be'},
|
349 |
+
'endash4colon': {'category': 'orthography',
|
350 |
+
'subcategory': 'punctuation',
|
351 |
+
'description': 'An en dash used where a colon should be'},
|
352 |
+
'endash4comma': {'category': 'orthography',
|
353 |
+
'subcategory': 'punctuation',
|
354 |
+
'description': 'An en dash used where a comma should be'},
|
355 |
+
'endash4hyphen': {'category': 'orthography',
|
356 |
+
'subcategory': 'punctuation',
|
357 |
+
'description': 'An en dash used where a hyphen should be'},
|
358 |
+
'endash4period': {'category': 'orthography',
|
359 |
+
'subcategory': 'punctuation',
|
360 |
+
'description': 'An en dash used where a period should be'},
|
361 |
+
'endash4semicolon': {'category': 'orthography',
|
362 |
+
'subcategory': 'punctuation',
|
363 |
+
'description': 'An en dash used where a semicolon should be'},
|
364 |
+
'endash4word': {'category': 'orthography',
|
365 |
+
'subcategory': 'punctuation',
|
366 |
+
'description': 'An en dash used where a word should be'},
|
367 |
+
'ex4comma': {'category': 'orthography',
|
368 |
+
'subcategory': 'punctuation',
|
369 |
+
'description': 'An exclamation mark used where a comma should be'},
|
370 |
+
'ex4period': {'category': 'orthography',
|
371 |
+
'subcategory': 'punctuation',
|
372 |
+
'description': 'Exclamation mark used instead of a period'},
|
373 |
+
'ex4qm': {'category': 'orthography',
|
374 |
+
'subcategory': 'punctuation',
|
375 |
+
'description': 'Exclamation mark used instead of a question mark'},
|
376 |
+
'extra-bracket': {'category': 'orthography',
|
377 |
+
'subcategory': 'punctuation',
|
378 |
+
'description': 'A redundant bracket'},
|
379 |
+
'extra-brackets': {'category': 'orthography',
|
380 |
+
'subcategory': 'punctuation',
|
381 |
+
'description': 'Redundant brackets'},
|
382 |
+
'extra-colon': {'category': 'orthography',
|
383 |
+
'subcategory': 'punctuation',
|
384 |
+
'description': 'A redundant colon'},
|
385 |
+
'extra-comma': {'category': 'orthography',
|
386 |
+
'subcategory': 'punctuation',
|
387 |
+
'description': 'Redundant comma'},
|
388 |
+
'extra-commas': {'category': 'orthography',
|
389 |
+
'subcategory': 'punctuation',
|
390 |
+
'description': 'Redundant commas used around an insertion'},
|
391 |
+
'extra-conjunction': {'category': 'orthography',
|
392 |
+
'subcategory': 'punctuation',
|
393 |
+
'description': 'A redundant conjunction'},
|
394 |
+
'extra-endash': {'category': 'orthography',
|
395 |
+
'subcategory': 'punctuation',
|
396 |
+
'description': 'A redundant en dash used'},
|
397 |
+
'extra-hyphen': {'category': 'orthography',
|
398 |
+
'subcategory': 'punctuation',
|
399 |
+
'description': 'A redundant hyphen used'},
|
400 |
+
'extra-period': {'category': 'orthography',
|
401 |
+
'subcategory': 'punctuation',
|
402 |
+
'description': 'Redundant period'},
|
403 |
+
'extra-punctuation': {'category': 'orthography',
|
404 |
+
'subcategory': 'punctuation',
|
405 |
+
'description': 'Redundant punctuation'},
|
406 |
+
'extra-qm': {'category': 'orthography',
|
407 |
+
'subcategory': 'punctuation',
|
408 |
+
'description': 'A redundant question mark'},
|
409 |
+
'extra-quot': {'category': 'orthography',
|
410 |
+
'subcategory': 'punctuation',
|
411 |
+
'description': 'A redundant single quote'},
|
412 |
+
'extra-quots': {'category': 'orthography',
|
413 |
+
'subcategory': 'punctuation',
|
414 |
+
'description': 'Redundant quotes'},
|
415 |
+
'extra-semicolon': {'category': 'orthography',
|
416 |
+
'subcategory': 'punctuation',
|
417 |
+
'description': 'A redundant semicolon'},
|
418 |
+
'extra-slash': {'category': 'orthography',
|
419 |
+
'subcategory': 'punctuation',
|
420 |
+
'description': 'A redundant slash'},
|
421 |
+
'extra-square': {'category': 'orthography',
|
422 |
+
'subcategory': 'punctuation',
|
423 |
+
'description': 'A redundant square bracket'},
|
424 |
+
'hypercorr': {'category': 'orthography',
|
425 |
+
'subcategory': 'punctuation',
|
426 |
+
'description': 'Hypercorrection'},
|
427 |
+
'hyphen4colon': {'category': 'orthography',
|
428 |
+
'subcategory': 'punctuation',
|
429 |
+
'description': 'A hyphen used where a colon should be'},
|
430 |
+
'hyphen4comma': {'category': 'orthography',
|
431 |
+
'subcategory': 'punctuation',
|
432 |
+
'description': 'A hyphen used where a comma should be'},
|
433 |
+
'hyphen4endash': {'category': 'orthography',
|
434 |
+
'subcategory': 'punctuation',
|
435 |
+
'description': 'A hyphen used where an en dash should be'},
|
436 |
+
'hyphen4period': {'category': 'orthography',
|
437 |
+
'subcategory': 'punctuation',
|
438 |
+
'description': 'A hyphen used where a period should be'},
|
439 |
+
'hyphen4semicolon': {'category': 'orthography',
|
440 |
+
'subcategory': 'punctuation',
|
441 |
+
'description': 'A hyphen used where a semicolon should be'},
|
442 |
+
'hyphen4word': {'category': 'orthography',
|
443 |
+
'subcategory': 'punctuation',
|
444 |
+
'description': 'A hyphen used where a word should be'},
|
445 |
+
'misplaced-quot': {'category': 'orthography',
|
446 |
+
'subcategory': 'punctuation',
|
447 |
+
'description': 'A quote is in the wrong position within a sentence'},
|
448 |
+
'missing-bracket': {'category': 'orthography',
|
449 |
+
'subcategory': 'punctuation',
|
450 |
+
'description': 'A single bracket missing'},
|
451 |
+
'missing-colon': {'category': 'orthography',
|
452 |
+
'subcategory': 'punctuation',
|
453 |
+
'description': 'A colon missing'},
|
454 |
+
'missing-comma': {'category': 'orthography',
|
455 |
+
'subcategory': 'punctuation',
|
456 |
+
'description': 'A comma missing'},
|
457 |
+
'missing-commas': {'category': 'orthography',
|
458 |
+
'subcategory': 'punctuation',
|
459 |
+
'description': 'Commas missing around insertion'},
|
460 |
+
'missing-conjunction': {'category': 'orthography',
|
461 |
+
'subcategory': 'punctuation',
|
462 |
+
'description': 'A conjunction missing'},
|
463 |
+
'missing-ex': {'category': 'orthography',
|
464 |
+
'subcategory': 'punctuation',
|
465 |
+
'description': 'An exclamation mark missing'},
|
466 |
+
'missing-period': {'category': 'orthography',
|
467 |
+
'subcategory': 'punctuation',
|
468 |
+
'description': 'A period missing'},
|
469 |
+
'missing-qm': {'category': 'orthography',
|
470 |
+
'subcategory': 'punctuation',
|
471 |
+
'description': 'A question mark missing'},
|
472 |
+
'missing-quot': {'category': 'orthography',
|
473 |
+
'subcategory': 'punctuation',
|
474 |
+
'description': 'A single quote missing'},
|
475 |
+
'missing-quots': {'category': 'orthography',
|
476 |
+
'subcategory': 'punctuation',
|
477 |
+
'description': 'Quotes missing'},
|
478 |
+
'missing-semicolon': {'category': 'orthography',
|
479 |
+
'subcategory': 'punctuation',
|
480 |
+
'description': 'A semicolon missing from a sentence'},
|
481 |
+
'missing-slash': {'category': 'orthography',
|
482 |
+
'subcategory': 'punctuation',
|
483 |
+
'description': 'Slash missing'},
|
484 |
+
'missing-square': {'category': 'orthography',
|
485 |
+
'subcategory': 'punctuation',
|
486 |
+
'description': 'A square bracket missing'},
|
487 |
+
'missing-symbol': {'category': 'orthography',
|
488 |
+
'subcategory': 'punctuation',
|
489 |
+
'description': 'A symbol missing'},
|
490 |
+
'nonsup4sup': {'category': 'orthography',
|
491 |
+
'subcategory': 'punctuation',
|
492 |
+
'description': 'Normal style of script used instead of superscript'},
|
493 |
+
'period-plus-conjunction': {'category': 'orthography',
|
494 |
+
'subcategory': 'punctuation',
|
495 |
+
'description': 'A period incorrectly used before a conjunction'},
|
496 |
+
'period4colon': {'category': 'orthography',
|
497 |
+
'subcategory': 'punctuation',
|
498 |
+
'description': 'A period used where a colon should be'},
|
499 |
+
'period4comma': {'category': 'orthography',
|
500 |
+
'subcategory': 'punctuation',
|
501 |
+
'description': 'A period used where a comma should be'},
|
502 |
+
'period4conjunction': {'category': 'orthography',
|
503 |
+
'subcategory': 'punctuation',
|
504 |
+
'description': 'A period used where a conjunction should be'},
|
505 |
+
'period4dash': {'category': 'orthography',
|
506 |
+
'subcategory': 'punctuation',
|
507 |
+
'description': 'A period used instead of a dash (en dash or em dash)'},
|
508 |
+
'period4ex': {'category': 'orthography',
|
509 |
+
'subcategory': 'punctuation',
|
510 |
+
'description': 'A period used where an exclamation mark should be'},
|
511 |
+
'period4qm': {'category': 'orthography',
|
512 |
+
'subcategory': 'punctuation',
|
513 |
+
'description': 'A period used where a question mark should be'},
|
514 |
+
'period4semicolon': {'category': 'orthography',
|
515 |
+
'subcategory': 'punctuation',
|
516 |
+
'description': 'A period used instead of a semicolon'},
|
517 |
+
'qm4comma': {'category': 'orthography',
|
518 |
+
'subcategory': 'punctuation',
|
519 |
+
'description': 'A question mark used where a comma should be'},
|
520 |
+
'qm4ex': {'category': 'orthography',
|
521 |
+
'subcategory': 'punctuation',
|
522 |
+
'description': 'A question mark for an exclamation mark'},
|
523 |
+
'qm4period': {'category': 'orthography',
|
524 |
+
'subcategory': 'punctuation',
|
525 |
+
'description': 'A question mark for a period'},
|
526 |
+
'semicolon4colon': {'category': 'orthography',
|
527 |
+
'subcategory': 'punctuation',
|
528 |
+
'description': 'A semicolon used where a colon should be'},
|
529 |
+
'semicolon4comma': {'category': 'orthography',
|
530 |
+
'subcategory': 'punctuation',
|
531 |
+
'description': 'A semicolon used where a comma should be'},
|
532 |
+
'semicolon4conjunction': {'category': 'orthography',
|
533 |
+
'subcategory': 'punctuation',
|
534 |
+
'description': 'semíkomma fyrir samtengingu'},
|
535 |
+
'semicolon4period': {'category': 'orthography',
|
536 |
+
'subcategory': 'punctuation',
|
537 |
+
'description': 'Semicolon used instead of a period'},
|
538 |
+
'slash4hyphen': {'category': 'orthography',
|
539 |
+
'subcategory': 'punctuation',
|
540 |
+
'description': 'A slash used instead of a hyphen'},
|
541 |
+
'slash4or': {'category': 'orthography',
|
542 |
+
'subcategory': 'punctuation',
|
543 |
+
'description': "A slash used instead of 'eða'"},
|
544 |
+
'square4bracket': {'category': 'orthography',
|
545 |
+
'subcategory': 'punctuation',
|
546 |
+
'description': 'A square bracket used where a bracket should be'},
|
547 |
+
'word4endash': {'category': 'orthography',
|
548 |
+
'subcategory': 'punctuation',
|
549 |
+
'description': 'A word used where an en dash should be'},
|
550 |
+
'word4symbol': {'category': 'orthography',
|
551 |
+
'subcategory': 'punctuation',
|
552 |
+
'description': 'A word used instead of a symbol'},
|
553 |
+
'wrong-quot': {'category': 'orthography',
|
554 |
+
'subcategory': 'punctuation',
|
555 |
+
'description': 'One part of a quotes pair is the wrong type of quote'},
|
556 |
+
'wrong-quots': {'category': 'orthography',
|
557 |
+
'subcategory': 'punctuation',
|
558 |
+
'description': 'The wrong type of quotes used which do not conform with Icelandic rules'},
|
559 |
+
'wrong-symbol': {'category': 'orthography',
|
560 |
+
'subcategory': 'punctuation',
|
561 |
+
'description': 'A wrong symbol used'},
|
562 |
+
'extra-space': {'category': 'orthography',
|
563 |
+
'subcategory': 'spacing',
|
564 |
+
'description': 'Redundant space'},
|
565 |
+
'merged-words': {'category': 'orthography',
|
566 |
+
'subcategory': 'spacing',
|
567 |
+
'description': 'Words incorrectly joined'},
|
568 |
+
'missing-endash': {'category': 'orthography',
|
569 |
+
'subcategory': 'spacing',
|
570 |
+
'description': 'An en dash missing'},
|
571 |
+
'missing-hyphen': {'category': 'orthography',
|
572 |
+
'subcategory': 'spacing',
|
573 |
+
'description': 'A hyphen missing in a compound'},
|
574 |
+
'missing-space': {'category': 'orthography',
|
575 |
+
'subcategory': 'spacing',
|
576 |
+
'description': 'Space missing'},
|
577 |
+
'split-compound': {'category': 'orthography',
|
578 |
+
'subcategory': 'spacing',
|
579 |
+
'description': 'A compound word split up'},
|
580 |
+
'split-word': {'category': 'orthography',
|
581 |
+
'subcategory': 'spacing',
|
582 |
+
'description': 'A word split in two parts'},
|
583 |
+
'split-words': {'category': 'orthography',
|
584 |
+
'subcategory': 'spacing',
|
585 |
+
'description': 'A word split into more than two parts'},
|
586 |
+
'bad-contraction': {'category': 'orthography',
|
587 |
+
'subcategory': 'spelling',
|
588 |
+
'description': 'An incorrect contraction'},
|
589 |
+
'hv4kv': {'category': 'orthography',
|
590 |
+
'subcategory': 'spelling',
|
591 |
+
'description': 'A word written with ‘hv’ instead of ‘kv’'},
|
592 |
+
'i4y': {'category': 'orthography',
|
593 |
+
'subcategory': 'spelling',
|
594 |
+
'description': '‘i’ written instead of ‘y’'},
|
595 |
+
'í4ý': {'category': 'orthography',
|
596 |
+
'subcategory': 'spelling',
|
597 |
+
'description': '‘í’ written instead of ‘ý’'},
|
598 |
+
'kv4hv': {'category': 'orthography',
|
599 |
+
'subcategory': 'spelling',
|
600 |
+
'description': 'A word written with ‘kv’ instead of ‘hv’'},
|
601 |
+
'n4nn': {'category': 'orthography',
|
602 |
+
'subcategory': 'spelling',
|
603 |
+
'description': '‘n’ written instead of ‘nn’, particularly in an inflectional ending'},
|
604 |
+
'name-error': {'category': 'orthography',
|
605 |
+
'subcategory': 'spelling',
|
606 |
+
'description': 'A proper name written incorrectly'},
|
607 |
+
'ngnk': {'category': 'orthography',
|
608 |
+
'subcategory': 'spelling',
|
609 |
+
'description': 'A broad vowel used before ‘ng’ or ‘nk’'},
|
610 |
+
'nn4n': {'category': 'orthography',
|
611 |
+
'subcategory': 'spelling',
|
612 |
+
'description': '‘nn’ written instead of ‘n’, particularly in an inflectional ending'},
|
613 |
+
'pronun-writing': {'category': 'orthography',
|
614 |
+
'subcategory': 'spelling',
|
615 |
+
'description': 'A word written according to its pronunciation'},
|
616 |
+
'u4y': {'category': 'orthography',
|
617 |
+
'subcategory': 'spelling',
|
618 |
+
'description': '‘U’ written instead of ‘y’ in the two words demonstrated below'},
|
619 |
+
'y4i': {'category': 'orthography',
|
620 |
+
'subcategory': 'spelling',
|
621 |
+
'description': '‘y’ written instead of ‘i’'},
|
622 |
+
'ý4í': {'category': 'orthography',
|
623 |
+
'subcategory': 'spelling',
|
624 |
+
'description': '‘ý’ written instead of ‘í’'},
|
625 |
+
'abbreviation4words': {'category': 'orthography',
|
626 |
+
'subcategory': 'style',
|
627 |
+
'description': 'An abbreviation used instead of the full words'},
|
628 |
+
'words4abbreviation': {'category': 'orthography',
|
629 |
+
'subcategory': 'style',
|
630 |
+
'description': 'Words used instead of their abbreviation'},
|
631 |
+
'extra-accent': {'category': 'orthography',
|
632 |
+
'subcategory': 'typo',
|
633 |
+
'description': 'A redundant accent used with a letter'},
|
634 |
+
'extra-letter': {'category': 'orthography',
|
635 |
+
'subcategory': 'typo',
|
636 |
+
'description': 'A redundant letter in a word'},
|
637 |
+
'extra-letters': {'category': 'orthography',
|
638 |
+
'subcategory': 'typo',
|
639 |
+
'description': 'More than one redundant letter in a word'},
|
640 |
+
'letter-rep': {'category': 'orthography',
|
641 |
+
'subcategory': 'typo',
|
642 |
+
'description': 'A letter within a word replaced with another letter'},
|
643 |
+
'missing-accent': {'category': 'orthography',
|
644 |
+
'subcategory': 'typo',
|
645 |
+
'description': 'An accent missing from a letter'},
|
646 |
+
'missing-letter': {'category': 'orthography',
|
647 |
+
'subcategory': 'typo',
|
648 |
+
'description': 'A letter missing in a word'},
|
649 |
+
'missing-letters': {'category': 'orthography',
|
650 |
+
'subcategory': 'typo',
|
651 |
+
'description': 'More than one letter missing in a word'},
|
652 |
+
'swapped-letters': {'category': 'orthography',
|
653 |
+
'subcategory': 'typo',
|
654 |
+
'description': 'Letters within a word swapped'},
|
655 |
+
'wrong-accent': {'category': 'orthography',
|
656 |
+
'subcategory': 'typo',
|
657 |
+
'description': 'A wrong accent used with a letter or an accent used with an incorrect letter'},
|
658 |
+
'dep': {'category': 'other',
|
659 |
+
'subcategory': 'other',
|
660 |
+
'description': 'An error dependent on another one'},
|
661 |
+
'gendered': {'category': 'style',
|
662 |
+
'subcategory': 'exclusion',
|
663 |
+
'description': 'Gendered language'},
|
664 |
+
'extra-number': {'category': 'style',
|
665 |
+
'subcategory': 'numbers',
|
666 |
+
'description': 'A redundant number'},
|
667 |
+
'number-fail': {'category': 'style',
|
668 |
+
'subcategory': 'numbers',
|
669 |
+
'description': 'An error relating to a number'},
|
670 |
+
'number4word': {'category': 'style',
|
671 |
+
'subcategory': 'numbers',
|
672 |
+
'description': 'A numeral used instead of a word. All numbers below and including 10 should be written as a word, except when they appear as part of a date or before a unit of measurement. Ordinals which are part of a proper name are always written as numerals.'},
|
673 |
+
'symbol4number': {'category': 'style',
|
674 |
+
'subcategory': 'numbers',
|
675 |
+
'description': 'A symbol used instead of a numeral'},
|
676 |
+
'word4number': {'category': 'style',
|
677 |
+
'subcategory': 'numbers',
|
678 |
+
'description': 'A word used instead of a numeral. All numbers higher than 10 should be written as a numeral, except when a number lower than 11 appears immediately before or after a number higher than that. Ordinals which are part of a proper name are always written as numerals.'},
|
679 |
+
'extra-symbol': {'category': 'style',
|
680 |
+
'subcategory': 'other',
|
681 |
+
'description': 'A redundant symbol'},
|
682 |
+
'symbol4word': {'category': 'style',
|
683 |
+
'subcategory': 'other',
|
684 |
+
'description': 'A symbol used where a word should be'},
|
685 |
+
'fw4ice': {'category': 'style',
|
686 |
+
'subcategory': 'style',
|
687 |
+
'description': 'A foreign word used instead of an Icelandic one'},
|
688 |
+
'ice4fw': {'category': 'style',
|
689 |
+
'subcategory': 'style',
|
690 |
+
'description': 'An Icelandic word used instead of a foreign one'},
|
691 |
+
'it4nonit': {'category': 'style',
|
692 |
+
'subcategory': 'style',
|
693 |
+
'description': 'A word in italic font which should be non-italic'},
|
694 |
+
'nonit4it': {'category': 'style',
|
695 |
+
'subcategory': 'style',
|
696 |
+
'description': 'A word in non-italic font which should be italic'},
|
697 |
+
'style': {'category': 'style',
|
698 |
+
'subcategory': 'style',
|
699 |
+
'description': 'A particular style in writing used'},
|
700 |
+
'taboo-word': {'category': 'style',
|
701 |
+
'subcategory': 'style',
|
702 |
+
'description': 'An inappropriate word used'},
|
703 |
+
'unicelandic': {'category': 'style',
|
704 |
+
'subcategory': 'style',
|
705 |
+
'description': 'Unicelandic usage in a sentence'},
|
706 |
+
'wording': {'category': 'style',
|
707 |
+
'subcategory': 'wording',
|
708 |
+
'description': 'Various errors regarding wording'},
|
709 |
+
'aux': {'category': 'vocabulary',
|
710 |
+
'subcategory': 'aux',
|
711 |
+
'description': 'Auxiliary verbs used incorrectly'},
|
712 |
+
'have': {'category': 'vocabulary',
|
713 |
+
'subcategory': 'aux',
|
714 |
+
'description': 'Confusion in the use of ‘hafa’, ‘eiga’ and ‘vera með’'},
|
715 |
+
'collocation': {'category': 'vocabulary',
|
716 |
+
'subcategory': 'collocation',
|
717 |
+
'description': 'An error in a collocation'},
|
718 |
+
'collocation-idiom': {'category': 'vocabulary',
|
719 |
+
'subcategory': 'collocation',
|
720 |
+
'description': 'An error in a collocation with an opaque meaning'},
|
721 |
+
'though': {'category': 'vocabulary',
|
722 |
+
'subcategory': 'collocation',
|
723 |
+
'description': "Confusion between 'þó að' and 'þótt'"},
|
724 |
+
'extra-word': {'category': 'vocabulary',
|
725 |
+
'subcategory': 'insertion',
|
726 |
+
'description': 'A redundant word'},
|
727 |
+
'extra-words': {'category': 'vocabulary',
|
728 |
+
'subcategory': 'insertion',
|
729 |
+
'description': 'More than one redundant word'},
|
730 |
+
'repeat-word': {'category': 'vocabulary',
|
731 |
+
'subcategory': 'insertion',
|
732 |
+
'description': 'A word repeated just after the other'},
|
733 |
+
'repeat-word-split': {'category': 'vocabulary',
|
734 |
+
'subcategory': 'insertion',
|
735 |
+
'description': 'A word repeated with some other words in between'},
|
736 |
+
'adj4noun': {'category': 'vocabulary',
|
737 |
+
'subcategory': 'lexical',
|
738 |
+
'description': 'An adjective used where a noun should be used'},
|
739 |
+
'context': {'category': 'vocabulary',
|
740 |
+
'subcategory': 'lexical',
|
741 |
+
'description': 'An incorrect word chosen for the particular context'},
|
742 |
+
'noun4adj': {'category': 'vocabulary',
|
743 |
+
'subcategory': 'lexical',
|
744 |
+
'description': 'A noun used where an adjective should be used'},
|
745 |
+
'það4þar': {'category': 'vocabulary',
|
746 |
+
'subcategory': 'lexical',
|
747 |
+
'description': 'það í stað þar'},
|
748 |
+
'þar4það': {'category': 'vocabulary',
|
749 |
+
'subcategory': 'lexical',
|
750 |
+
'description': 'The adverb ‘þar’ used where ‘það’ should be'},
|
751 |
+
'missing-word': {'category': 'vocabulary',
|
752 |
+
'subcategory': 'omission',
|
753 |
+
'description': 'A word missing'},
|
754 |
+
'missing-words': {'category': 'vocabulary',
|
755 |
+
'subcategory': 'omission',
|
756 |
+
'description': 'More than one word missing'},
|
757 |
+
'indef-pro': {'category': 'vocabulary',
|
758 |
+
'subcategory': 'pro',
|
759 |
+
'description': 'An indefinite pronoun used incorrectly'},
|
760 |
+
'interr-pro': {'category': 'vocabulary',
|
761 |
+
'subcategory': 'pro',
|
762 |
+
'description': 'An incorrect interrogative pronoun used'},
|
763 |
+
'plural4singular': {'category': 'vocabulary',
|
764 |
+
'subcategory': 'semantic',
|
765 |
+
'description': 'A plural word which should be singular'},
|
766 |
+
'singular4plural': {'category': 'vocabulary',
|
767 |
+
'subcategory': 'semantic',
|
768 |
+
'description': 'A singular word which should be plural'}}
|
769 |
+
|
770 |
+
|
771 |
+
|
772 |
+
_DESCRIPTION = """The Icelandic Error Corpus (IceEC) is a collection of texts in modern Icelandic annotated for mistakes related to spelling, grammar, and other issues. The texts are organized by genre. The current version includes sentences from student essays, online news texts and Wikipedia articles.
|
773 |
+
Sentences within texts in the student essays had to be shuffled due to the license which they were originally published under, but neither the online news texts nor the Wikipedia articles needed to be shuffled.
|
774 |
+
"""
|
775 |
+
_CITATION = "Anton Karl Ingason, Lilja Björk Stefánsdóttir, Þórunn Arnardóttir, and Xindan Xu. 2021. The Icelandic Error Corpus (IceEC). Version 1.1. (https://github.com/antonkarl/iceErrorCorpus)"
|
776 |
+
|
777 |
+
|
778 |
+
class IceECConfig(datasets.BuilderConfig):
|
779 |
+
"""BuilderConfig for IceEC."""
|
780 |
+
|
781 |
+
level: str = None
|
782 |
+
|
783 |
+
def __init__(self, **kwargs):
|
784 |
+
"""BuilderConfig for IceEC.
|
785 |
+
Args:
|
786 |
+
**kwargs: keyword arguments forwarded to super.
|
787 |
+
"""
|
788 |
+
super(IceECConfig, self).__init__(**kwargs)
|
789 |
+
|
790 |
+
|
791 |
+
_URL = "https://huggingface.co/datasets/vesteinn/icelandic-error-corpus-IceEC/tree/main"
|
792 |
+
_URLS = {
|
793 |
+
"train": _URL + "/train.json" ,
|
794 |
+
"test": _URL + "/test.json"
|
795 |
+
}
|
796 |
+
|
797 |
+
|
798 |
+
class IceEC(datasets.GeneratorBasedBuilder):
|
799 |
+
"""The Icelandic Error Corpus, IceEC."""
|
800 |
+
|
801 |
+
BUILDER_CONFIGS = [
|
802 |
+
IceECConfig(
|
803 |
+
name="fine-grained",
|
804 |
+
level=None,
|
805 |
+
description="Load the IEC using fine grained information",
|
806 |
+
),
|
807 |
+
IceECConfig(
|
808 |
+
name="subcategory",
|
809 |
+
level="subcategory",
|
810 |
+
description="Load the IEC using subcategories",
|
811 |
+
),
|
812 |
+
IceECConfig(
|
813 |
+
name="category",
|
814 |
+
level="catgegory",
|
815 |
+
description="Load the IEC using top level categories",
|
816 |
+
),
|
817 |
+
|
818 |
+
]
|
819 |
+
|
820 |
+
|
821 |
+
def _info(self):
|
822 |
+
return datasets.DatasetInfo(
|
823 |
+
description=_DESCRIPTION,
|
824 |
+
features=datasets.Features(
|
825 |
+
{
|
826 |
+
"id": datasets.Value("string"),
|
827 |
+
"sentence": datasets.features.List("string"),
|
828 |
+
"errors": datasets.features.List("string")
|
829 |
+
}
|
830 |
+
),
|
831 |
+
# No default supervised_keys (as we have to pass both question
|
832 |
+
# and context as input).
|
833 |
+
supervised_keys=None,
|
834 |
+
homepage="",
|
835 |
+
citation=_CITATION,
|
836 |
+
)
|
837 |
+
|
838 |
+
def _split_generators(self, dl_manager):
|
839 |
+
downloaded_files = dl_manager.download_and_extract(_URLS)
|
840 |
+
|
841 |
+
return [
|
842 |
+
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files["train"]}),
|
843 |
+
datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": downloaded_files["test"]}),
|
844 |
+
]
|
845 |
+
|
846 |
+
def _generate_examples(self, filepath):
|
847 |
+
with open(filepath, encoding="utf-8") as f:
|
848 |
+
guid = 0
|
849 |
+
for line in f:
|
850 |
+
data = json.loads(line.strip())
|
851 |
+
if self.config.level is not None:
|
852 |
+
errors = [ERROR_INFORMATION[e][self.config.level] for e in data["errors"]]
|
853 |
+
data["errors"] = errors
|
854 |
+
yield guid, data
|
855 |
+
guid += 1
|
test.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2c015f8408ea1effeea8c31429d4966cd6a08e3ce55f20863dbe01b1d7570940
|
3 |
+
size 1948150
|
train.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0b0bb8c1e428484aa810b47d04cea531c571a9dcd6f3f3be1d9ba69ab802687d
|
3 |
+
size 21399450
|