-
Notifications
You must be signed in to change notification settings - Fork 8
/
jmdictabbreviations.js
196 lines (196 loc) · 7.9 KB
/
jmdictabbreviations.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
window.onload = function()
{
let entities = [
["MA","martial arts term"],
["X","rude or X-rated term (not displayed in educational software)"],
["abbr","abbreviation"],
["adj-i","adjective (keiyoushi)"],
["adj-ix","adjective (keiyoushi) - yoi/ii class"],
["adj-na","adjectival nouns or quasi-adjectives (keiyodoshi)"],
["adj-no","nouns which may take the genitive case particle `no'"],
["adj-pn","pre-noun adjectival (rentaishi)"],
["adj-t","`taru' adjective"],
["adj-f","noun or verb acting prenominally"],
["adv","adverb (fukushi)"],
["adv-to","adverb taking the `to' particle"],
["arch","archaism"],
["ateji","ateji (phonetic) reading"],
["aux","auxiliary"],
["aux-v","auxiliary verb"],
["aux-adj","auxiliary adjective"],
["Buddh","Buddhist term"],
["chem","chemistry term"],
["chn","children's language"],
["col","colloquialism"],
["comp","computer terminology"],
["conj","conjunction"],
["cop-da","copula"],
["ctr","counter"],
["derog","derogatory"],
["eK","exclusively kanji"],
["ek","exclusively kana"],
["exp","expressions (phrases, clauses, etc.)"],
["fam","familiar language"],
["fem","female term or language"],
["food","food term"],
["geom","geometry term"],
["gikun","gikun (meaning as reading) or jukujikun (special kanji reading)"],
["hon","honorific or respectful (sonkeigo) language"],
["hum","humble (kenjougo) language"],
["iK","word containing irregular kanji usage"],
["id","idiomatic expression"],
["ik","word containing irregular kana usage"],
["int","interjection (kandoushi)"],
["io","irregular okurigana usage"],
["iv","irregular verb"],
["ling","linguistics terminology"],
["m-sl","manga slang"],
["male","male term or language"],
["male-sl","male slang"],
["math","mathematics"],
["mil","military"],
["n","noun (common) (futsuumeishi)"],
["n-adv","adverbial noun (fukushitekimeishi)"],
["n-suf","noun, used as a suffix"],
["n-pref","noun, used as a prefix"],
["n-t","noun (temporal) (jisoumeishi)"],
["num","numeric"],
["oK","word containing out-dated kanji"],
["obs","obsolete term"],
["obsc","obscure term"],
["ok","out-dated or obsolete kana usage"],
["oik","old or irregular kana form"],
["on-mim","onomatopoeic or mimetic word"],
["pn","pronoun"],
["poet","poetical term"],
["pol","polite (teineigo) language"],
["pref","prefix"],
["proverb","proverb"],
["prt","particle"],
["physics","physics terminology"],
["quote","quotation"],
["rare","rare"],
["sens","sensitive"],
["sl","slang"],
["suf","suffix"],
["uK","word usually written using kanji alone"],
["uk","word usually written using kana alone"],
["unc","unclassified"],
["yoji","yojijukugo"],
["v1","Ichidan verb"],
["v1-s","Ichidan verb - kureru special class"],
["v2a-s","Nidan verb with 'u' ending (archaic)"],
["v4h","Yodan verb with `hu/fu' ending (archaic)"],
["v4r","Yodan verb with `ru' ending (archaic)"],
["v5aru","Godan verb - -aru special class"],
["v5b","Godan verb with `bu' ending"],
["v5g","Godan verb with `gu' ending"],
["v5k","Godan verb with `ku' ending"],
["v5k-s","Godan verb - Iku/Yuku special class"],
["v5m","Godan verb with `mu' ending"],
["v5n","Godan verb with `nu' ending"],
["v5r","Godan verb with `ru' ending"],
["v5r-i","Godan verb with `ru' ending (irregular verb)"],
["v5s","Godan verb with `su' ending"],
["v5t","Godan verb with `tsu' ending"],
["v5u","Godan verb with `u' ending"],
["v5u-s","Godan verb with `u' ending (special class)"],
["v5uru","Godan verb - Uru old class verb (old form of Eru)"],
["vz","Ichidan verb - zuru verb (alternative form of -jiru verbs)"],
["vi","intransitive verb"],
["vk","Kuru verb - special class"],
["vn","irregular nu verb"],
["vr","irregular ru verb, plain form ends with -ri"],
["vs","noun or participle which takes the aux. verb suru"],
["vs-c","su verb - precursor to the modern suru"],
["vs-s","suru verb - special class"],
["vs-i","suru verb - irregular"],
["kyb","Kyoto-ben"],
["osb","Osaka-ben"],
["ksb","Kansai-ben"],
["ktb","Kantou-ben"],
["tsb","Tosa-ben"],
["thb","Touhoku-ben"],
["tsug","Tsugaru-ben"],
["kyu","Kyuushuu-ben"],
["rkb","Ryuukyuu-ben"],
["nab","Nagano-ben"],
["hob","Hokkaido-ben"],
["vt","transitive verb"],
["vulg","vulgar expression or word"],
["adj-kari","`kari' adjective (archaic)"],
["adj-ku","`ku' adjective (archaic)"],
["adj-shiku","`shiku' adjective (archaic)"],
["adj-nari","archaic/formal form of na-adjective"],
["n-pr","proper noun"],
["v-unspec","verb unspecified"],
["v4k","Yodan verb with `ku' ending (archaic)"],
["v4g","Yodan verb with `gu' ending (archaic)"],
["v4s","Yodan verb with `su' ending (archaic)"],
["v4t","Yodan verb with `tsu' ending (archaic)"],
["v4n","Yodan verb with `nu' ending (archaic)"],
["v4b","Yodan verb with `bu' ending (archaic)"],
["v4m","Yodan verb with `mu' ending (archaic)"],
["v2k-k","Nidan verb (upper class) with `ku' ending (archaic)"],
["v2g-k","Nidan verb (upper class) with `gu' ending (archaic)"],
["v2t-k","Nidan verb (upper class) with `tsu' ending (archaic)"],
["v2d-k","Nidan verb (upper class) with `dzu' ending (archaic)"],
["v2h-k","Nidan verb (upper class) with `hu/fu' ending (archaic)"],
["v2b-k","Nidan verb (upper class) with `bu' ending (archaic)"],
["v2m-k","Nidan verb (upper class) with `mu' ending (archaic)"],
["v2y-k","Nidan verb (upper class) with `yu' ending (archaic)"],
["v2r-k","Nidan verb (upper class) with `ru' ending (archaic)"],
["v2k-s","Nidan verb (lower class) with `ku' ending (archaic)"],
["v2g-s","Nidan verb (lower class) with `gu' ending (archaic)"],
["v2s-s","Nidan verb (lower class) with `su' ending (archaic)"],
["v2z-s","Nidan verb (lower class) with `zu' ending (archaic)"],
["v2t-s","Nidan verb (lower class) with `tsu' ending (archaic)"],
["v2d-s","Nidan verb (lower class) with `dzu' ending (archaic)"],
["v2n-s","Nidan verb (lower class) with `nu' ending (archaic)"],
["v2h-s","Nidan verb (lower class) with `hu/fu' ending (archaic)"],
["v2b-s","Nidan verb (lower class) with `bu' ending (archaic)"],
["v2m-s","Nidan verb (lower class) with `mu' ending (archaic)"],
["v2y-s","Nidan verb (lower class) with `yu' ending (archaic)"],
["v2r-s","Nidan verb (lower class) with `ru' ending (archaic)"],
["v2w-s","Nidan verb (lower class) with `u' ending and `we' conjugation (archaic)"],
["archit","architecture term"],
["astron","astronomy, etc. term"],
["baseb","baseball term"],
["biol","biology term"],
["bot","botany term"],
["bus","business term"],
["econ","economics term"],
["engr","engineering term"],
["finc","finance term"],
["geol","geology, etc. term"],
["law","law, etc. term"],
["mahj","mahjong term"],
["med","medicine, etc. term"],
["music","music term"],
["Shinto","Shinto term"],
["shogi","shogi term"],
["sports","sports term"],
["sumo","sumo term"],
["zool","zoology term"],
["joc","jocular, humorous term"],
["anat","anatomical term"]
];
entities.sort(function(a, b) {
return a[0].localeCompare(b[0]);
});
let parent = document.getElementById("entities");
for(let entity of entities)
{
let div = document.createElement("div");
let span1 = document.createElement("span");
span1.className = "entity";
let span2 = document.createElement("span");
span2.className = "meaning";
span1.textContent = entity[0];
span2.textContent = entity[1];
div.appendChild(span1);
div.appendChild(document.createTextNode(" - "));
div.appendChild(span2);
parent.appendChild(div);
}
}