Skip to content
Snippets Groups Projects
Commit 716f4e2b authored by Ole Voldsæter's avatar Ole Voldsæter
Browse files

Fornorsket ordklasser

parent 816c78f6
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,10 @@ export default {
<style scoped>
summary {
width: 30em;
}
.word-classification {
text-decoration: underline dashed;
}
......
var mapping = {
"NOUN": "Substantiv",
"VERB": "Verb",
"ADJ": "Adjektiv",
"ADP": "Preposisjon",
"PFX": "Prefiks",
"ADV": "Adverb",
"DET": "Determinativ",
"PROPN": "Egennavn",
"ABBR": "Forkortelse",
"INTJ": "Interjeksjon",
"SYM": "Symbol",
"PRON": "Pronomen",
"CCONJ": "Konjunksjon",
"SCONJ": "Subjunksjon",
"INFM": "Infinitivsmerke",
"COMPPFX": "I sammensetting",
"Masc": "Mask.",
"Fem": "Fem.",
"Neuter": "Nøytr."
}
var group_list = function(grps) {
var grp_collection = new Set()
grps.forEach(function(lemma){
lemma.paradigm_info.forEach(function(grp){
if (grp.tags){
grp_collection.add(grp.tags[0] == 'subst' ? grp.tags[0] + ',' + grp.tags[1] : grp.tags[0])
grp_collection.add(grp.tags[0] == 'NOUN' ? mapping[grp.tags[0]] + ', ' + mapping[grp.tags[1]] : mapping[grp.tags[0]])
}
})
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment