Skip to content

Commit

Permalink
spell
Browse files Browse the repository at this point in the history
  • Loading branch information
Juutitta committed Nov 11, 2024
1 parent 25e7bd6 commit 45bc691
Show file tree
Hide file tree
Showing 7 changed files with 92 additions and 56 deletions.
66 changes: 33 additions & 33 deletions src/fst/morphology/affixes/derivations-inflections.lexc
Original file line number Diff line number Diff line change
Expand Up @@ -43875,7 +43875,7 @@ LEXICON XItX2 !!= * @CODE@

LEXICON XIitX_stem !!= * @CODE@ type katerippoq og alt på TIP
+Gram/IV: XIitX2 ;
+Gram/IV+V+Ind+Gram/Exclm:%>%TRUNCk K ;
+Gram/IV+V+Ind+Gram/Exclm+Use/-Spell:%>%TRUNCk K ;
flex-iv ;

LEXICON XIitX !!= * @CODE@
Expand Down Expand Up @@ -97039,68 +97039,68 @@ LEXICON flex-tv_ssa2 !!= * @CODE@
[email protected]@+Der/vn+N+Aeq+Sg:%>[email protected]@ K ; !til de særlige tut ippaa-former !tilføjet livm 20170505
[email protected]@+Der/vn+N+Aeq+Sg+IP+Orth/Alt:%>[email protected]@ flex-tv ; !til de særlige tut ippaa-former
+V+Ind+1Sg+2SgO:%>vakkit K_VOK ; !flex-tv_vaa
+V+Ind+1Sg+2SgO+Orth/Alt:%>%VTRUNCuakkit K_VOK ; !flex-tv_vaa
+V+Ind+1Sg+2SgO+Orth/Alt:%>vagit K_VOK ; !flex-tv_vaa
+V+Ind+1Sg+2SgO+Orth/Alt:%>%VTRUNCuagit K_VOK ; !flex-tv_vaa
+V+Ind+1Sg+2SgO+Orth/Alt+Use/-Spell:%>%VTRUNCuakkit K_VOK ; !flex-tv_vaa
+V+Ind+1Sg+2SgO+Orth/Alt+Use/-Spell:%>vagit K_VOK ; !flex-tv_vaa
+V+Ind+1Sg+2SgO+Orth/Alt+Use/-Spell:%>%VTRUNCuagit K_VOK ; !flex-tv_vaa
+V+Ind+1Sg+3SgO:%>vara K ; !flex-tv_vaa
+V+Ind+1Sg+3SgO+Orth/Alt:%>%VTRUNCuara K ; !flex-tv_vaa
+V+Ind+1Sg+3SgO+Orth/Alt+Use/-Spell:%>%VTRUNCuara K ; !flex-tv_vaa
+V+Ind+1Sg+2PlO:%>vassi K_plur ; !flex-tv_vaa
+V+Ind+1Sg+2PlO+Orth/Alt:%>%VTRUNCuassi K_plur ; !flex-tv_vaa
+V+Ind+1Sg+2PlO+Orth/Alt+Use/-Spell:%>%VTRUNCuassi K_plur ; !flex-tv_vaa
+V+Ind+1Sg+3PlO:%>vakka K_plur ; !flex-tv_vaa
+V+Ind+1Sg+3PlO+Orth/Alt:%>%VTRUNCuakka K_plur ; !flex-tv_vaa
+V+Ind+1Sg+3PlO+Orth/Alt+Use/-Spell:%>%VTRUNCuakka K_plur ; !flex-tv_vaa
+V+Ind+2Sg+1SgO:%>varma K ; !flex-tv_vaa
+V+Ind+2Sg+1SgO+Orth/Alt:%>%VTRUNCuarma K ; !flex-tv_vaa
+V+Ind+2Sg+1SgO+Orth/Alt+Use/-Spell:%>%VTRUNCuarma K ; !flex-tv_vaa
+V+Ind+2Sg+3SgO:%>vat K ; !flex-tv_vaa
+V+Ind+2Sg+3SgO+Orth/Alt:%>%VTRUNCuat K ; !flex-tv_vaa
+V+Ind+2Sg+3SgO+Orth/Alt+Use/-Spell:%>%VTRUNCuat K ; !flex-tv_vaa
+V+Ind+2Sg+1PlO:%>vatsigut K_plur ; !flex-tv_vaa
+V+Ind+2Sg+1PlO+Orth/Alt:%>%VTRUNCuatsigut K_plur ; !flex-tv_vaa
+V+Ind+2Sg+1PlO+Orth/Alt+Use/-Spell:%>%VTRUNCuatsigut K_plur ; !flex-tv_vaa
+V+Ind+2Sg+3PlO:%>vatit K_plur ; !flex-tv_vaa
+V+Ind+2Sg+3PlO+Orth/Alt:%>%VTRUNCuatit K_plur ; !flex-tv_vaa
+V+Ind+2Sg+3PlO+Orth/Alt+Use/-Spell:%>%VTRUNCuatit K_plur ; !flex-tv_vaa
+V+Ind+3Sg+1SgO:%>vaanga K ; !flex-tv_vaa
+V+Ind+3Sg+1SgO+Orth/Alt:%>%VTRUNCuaanga K ; !flex-tv_vaa
+V+Ind+3Sg+1SgO+Orth/Alt+Use/-Spell:%>%VTRUNCuaanga K ; !flex-tv_vaa
+V+Ind+3Sg+2SgO:%>vaatit K ; !flex-tv_vaa
+V+Ind+3Sg+2SgO+Orth/Alt:%>%VTRUNCuaatit K ; !flex-tv_vaa
+V+Ind+3Sg+2SgO+Orth/Alt+Use/-Spell:%>%VTRUNCuaatit K ; !flex-tv_vaa
+V+Ind+3Sg+3SgO:%>vaa K ; !flex-tv_vaa
+V+Ind+3Sg+3SgO+Orth/Alt:%>%VTRUNCuaa K ; !flex-tv_vaa
+V+Ind+3Sg+3SgO+Orth/Alt+Use/-Spell:%>%VTRUNCuaa K ; !flex-tv_vaa
+V+Ind+3Sg+4SgO+Orth/Arch:%>vaani K ;
+V+Ind+3Sg+1PlO:%>vaatigut K_plur ; !flex-tv_vaa
+V+Ind+3Sg+1PlO+Orth/Alt:%>%VTRUNCuaatigut K_plur ; !flex-tv_vaa
+V+Ind+3Sg+1PlO+Orth/Alt+Use/-Spell:%>%VTRUNCuaatigut K_plur ; !flex-tv_vaa
+V+Ind+3Sg+2PlO:%>vaasi K_plur ; !flex-tv_vaa
+V+Ind+3Sg+2PlO+Orth/Alt:%>%VTRUNCuaasi K_plur ; !flex-tv_vaa
+V+Ind+3Sg+2PlO+Orth/Alt+Use/-Spell:%>%VTRUNCuaasi K_plur ; !flex-tv_vaa
+V+Ind+3Sg+3PlO:%>vai K_plur ; !flex-tv_vaa
+V+Ind+3Sg+3PlO+Orth/Alt:%>%VTRUNCuai K_plur ; !flex-tv_vaa
+V+Ind+3Sg+3PlO+Orth/Alt+Use/-Spell:%>%VTRUNCuai K_plur ; !flex-tv_vaa
+V+Ind+1Pl+2SgO:%>vatsigit K ; !flex-tv_vaa
+V+Ind+1Pl+2SgO+Orth/Alt:%>%VTRUNCuatsigit K ; !flex-tv_vaa
+V+Ind+1Pl+2SgO+Orth/Alt+Use/-Spell:%>%VTRUNCuatsigit K ; !flex-tv_vaa
+V+Ind+1Pl+3SgO:%>varput K ; !flex-tv_vaa
+V+Ind+1Pl+3SgO+Orth/Alt:%>%VTRUNCuarput K ; !flex-tv_vaa
+V+Ind+1Pl+3SgO+Orth/Alt+Use/-Spell:%>%VTRUNCuarput K ; !flex-tv_vaa
+V+Ind+1Pl+2PlO:%>vassi K_plur ; !flex-tv_vaa
+V+Ind+1Pl+2PlO+Orth/Alt:%>%VTRUNCuassi K_plur ; !flex-tv_vaa
+V+Ind+1Pl+2PlO+Orth/Alt+Use/-Spell:%>%VTRUNCuassi K_plur ; !flex-tv_vaa
+V+Ind+1Pl+3PlO:%>vavut K_plur ; !flex-tv_vaa
+V+Ind+1Pl+3PlO+Orth/Alt:%>%VTRUNCuavut K_plur ; !flex-tv_vaa
+V+Ind+1Pl+3PlO+Orth/Alt+Use/-Spell:%>%VTRUNCuavut K_plur ; !flex-tv_vaa
+V+Ind+1Pl+3PlO:%>vagut K_plur ; !flex-tv_vaa
+V+Ind+1Pl+3PlO+Orth/Alt:%>%VTRUNCuagut K_plur ; !flex-tv_vaa
+V+Ind+1Pl+3PlO+Orth/Alt+Use/-Spell:%>%VTRUNCuagut K_plur ; !flex-tv_vaa
+V+Ind+2Pl+1SgO:%>vassinga K ; !flex-tv_vaa
+V+Ind+2Pl+1SgO+Orth/Alt:%>%VTRUNCuassinga K ; !flex-tv_vaa
+V+Ind+2Pl+1SgO+Orth/Alt+Use/-Spell:%>%VTRUNCuassinga K ; !flex-tv_vaa
+V+Ind+2Pl+3SgO:%>varsi K ; !flex-tv_vaa
+V+Ind+2Pl+3SgO+Orth/Alt:%>%VTRUNCuarsi K ; !flex-tv_vaa
+V+Ind+2Pl+3SgO+Orth/Alt+Use/-Spell:%>%VTRUNCuarsi K ; !flex-tv_vaa
+V+Ind+2Pl+1PlO:%>vatsigut K_plur ; !flex-tv_vaa
+V+Ind+2Pl+1PlO+Orth/Alt:%>%VTRUNCuatsigut K_plur ; !flex-tv_vaa
+V+Ind+2Pl+1PlO+Orth/Alt+Use/-Spell:%>%VTRUNCuatsigut K_plur ; !flex-tv_vaa
+V+Ind+2Pl+3PlO:%>vasi K_plur ; !flex-tv_vaa
+V+Ind+2Pl+3PlO+Orth/Alt:%>%VTRUNCuasi K_plur ; !flex-tv_vaa
+V+Ind+2Pl+3PlO+Orth/Alt+Use/-Spell:%>%VTRUNCuasi K_plur ; !flex-tv_vaa
+V+Ind+3Pl+1SgO:%>vaannga K ; !flex-tv_vaa
+V+Ind+3Pl+1SgO+Orth/Alt:%>%VTRUNCuaannga K ; !flex-tv_vaa
+V+Ind+3Pl+1SgO+Orth/Alt+Use/-Spell:%>%VTRUNCuaannga K ; !flex-tv_vaa
+V+Ind+3Pl+2SgO:%>vaatsit K ; !flex-tv_vaa
+V+Ind+3Pl+2SgO+Orth/Alt:%>%VTRUNCuaatsit K ; !flex-tv_vaa
+V+Ind+3Pl+2SgO+Orth/Alt+Use/-Spell:%>%VTRUNCuaatsit K ; !flex-tv_vaa
+V+Ind+3Pl+3SgO:%>vaat K ; !flex-tv_vaa
+V+Ind+3Pl+3SgO+Orth/Alt:%>%VTRUNCuaat K ; !flex-tv_vaa
+V+Ind+3Pl+3SgO+Orth/Alt+Use/-Spell:%>%VTRUNCuaat K ; !flex-tv_vaa
+V+Ind+3Pl+1PlO:%>vaatigut K_plur ; !flex-tv_vaa
+V+Ind+3Pl+1PlO+Orth/Alt:%>%VTRUNCuaatigut K_plur ; !flex-tv_vaa
+V+Ind+3Pl+1PlO+Orth/Alt+Use/-Spell:%>%VTRUNCuaatigut K_plur ; !flex-tv_vaa
+V+Ind+3Pl+2PlO:%>vaasi K_plur ; !flex-tv_vaa
+V+Ind+3Pl+2PlO+Orth/Alt:%>%VTRUNCuaasi K_plur ; !flex-tv_vaa
+V+Ind+3Pl+2PlO+Orth/Alt+Use/-Spell:%>%VTRUNCuaasi K_plur ; !flex-tv_vaa
+V+Ind+3Pl+3PlO:%>vaat K_plur ; !flex-tv_vaa
+V+Ind+3Pl+3PlO+Orth/Alt:%>%VTRUNCuaat K_plur ; !flex-tv_vaa
+V+Ind+3Pl+3PlO+Orth/Alt+Use/-Spell:%>%VTRUNCuaat K_plur ; !flex-tv_vaa
+V+Ind+3Pl+3PlO+Orth/Alt:%>vai K_plur ; !flex-tv_vaa
+V+Ind+3Pl+3PlO+Orth/Alt:%>%VTRUNCuai K_plur ; !flex-tv_vaa
+V+Ind+3Pl+3PlO+Orth/Alt+Use/-Spell:%>%VTRUNCuai K_plur ; !flex-tv_vaa
+V+Int+2Sg+1SgO:%>vinga K ; !flex-tv_vaa
+V+Int+2Sg+3SgO:%>viuk K ; !flex-tv_vaa
+V+Int+2Sg+1PlO:%>visigut K_plur ; !flex-tv_vaa
Expand Down
1 change: 1 addition & 0 deletions src/fst/morphology/stems/nouns.lexc
Original file line number Diff line number Diff line change
Expand Up @@ -8494,6 +8494,7 @@ novembari+N+Abs+Sg+Err/Sub+Orth/Arch:nuvimberi Z1VZmorf ; !liv 170405 PL20170407
novembari+N+Abs+Sg+Err/Sub+Orth/Arch:nuvimpari Z1VZmorf ; !liv 170403 der mangler en regel for at 'v' ikke skal forsvinde her. PL20170407 done!
novembari+N+Abs+Sg+Err/Sub+Orth/Arch:nuvimperi Z1VZmorf ; !liv 170405 PL20170407 done!
november+N+Abs+Sg:november Krestr ; !ved dateringer
normu+N+Abs+Sg+Err/Sub:nr'mu # ;
nuaarsaat tptmorf ;
nuaarsarfik Z2-Zmorf ;
nuak Z2-Zmorf ;
Expand Down
11 changes: 10 additions & 1 deletion test/data/typos.txt
Original file line number Diff line number Diff line change
Expand Up @@ -505,4 +505,13 @@ atinngortiterusullunga atinngortitserusullunga
akuerineqarsinnaasasoq akuerineqarsinnaassasoq
atsiukkusukkakkut atsiukkusukkakku
ajuerisassatut akuerisassatut
Tunngavilersuutingineqarneri Tunngavilersuutigineqarneri
Tunngavilersuutingineqarneri Tunngavilersuutigineqarneri
iperartsippallattarneri iperartippallattarneri
tusaasaleraagakkit tusaasaleraangakkit
assingiinngittut assigiinngitsut
sammiumaassangaat sammiumassagaat
angunniunnerit anngunniunnerit
sukkanniunnerit sukkaniunnerit
nr’mu normu
Saqqamiik Saqqamiit
Inuutilluga Inuutillunga
15 changes: 14 additions & 1 deletion tools/grammarcheckers/errors.source.xml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,19 @@
<description xml:lang="kl">Taggit "$2" ilaliussartaalu "$1" ataasersiutaassapput, "$4" ataasersiutaatillugu</description>
</body>
</error>

<error id="msyn-Opt-1Sg-2SgO">
<header>
<title xml:lang="en">Missing suffix and Wrong inflection</title>
<title xml:lang="da">Manglende suffiks og forkert bøjning</title>
<title xml:lang="kl">Uiguummik amigaateqarpoq naaneralu ajorluni</title>
</header>
<body>
<description xml:lang="en">When the object of a transitive verb, here "$8" is in plural, there has to be added a suffix added and the inflection changed in the verb "$8" </description>
<description xml:lang="da"></description>
<description xml:lang="kl">Oqaluutip susallip susaa "$2" kinaassusersiutit pingajuanni qasseersiutaatillugu oqaluut "$1" uiguuserneqarlunilu naleqquttumik naanilerneqassaaq</description>
</body>
</error>

<error id="msyn-con-rel">
<header>
Expand All @@ -136,7 +149,7 @@
<title xml:lang="kl">Sapaatip akunnerata ullua taggisaassaaq allamoorummik naanilik</title>
</header>
<body>
<description xml:lang="en">The word that designates a weekday "$1" should be a noun in relative case, when it modifies a possessed noun "2"</description>
<description xml:lang="en">The word that designates a weekday "$1" should be a noun in relative case, when it modifies a possessed noun "$2"</description>
<description xml:lang="da">Ordet, der betegner en ugedag skal være et nomen i relativ kasus, når det er adled til et nomen med possessormarkering</description>
<description xml:lang="kl">Oqaaseq sapaatip akunnerata ulluanut tunngasoq "$1" taggisaassaaq allamoorummik naanilik, taggimmut pigisamut imaattumut "$2" ilaliussaaguni</description>
</body>
Expand Down
9 changes: 9 additions & 0 deletions tools/grammarcheckers/grammarchecker.cg3
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,15 @@ COPY (1Pl 3SgO &SUGGEST) EXCEPT (2Pl 1PlO &msyn-con-2Pl1Pl0-1Pl3SgO) TARGET &msy
### agreement ###
ADD:msyn-obj-marking-abs-3PlO &msyn-obj-marking-abs-3PlO TARGET (HTR Der/vv Gram/IV) IF (*-1 Abs BARRIER (*) - Abs LINK *-1 Rel BARRIER (*) - Rel);

#CASE, PERSON, NUMBER
WITH (1Sg 2SgO) + Opt
(-1 Pron + Abs + Pl)
{
ADD:msyn-Opt-1Sg-2SgO &msyn-Opt-1Sg-2SgO (*) ;
COPY (LAAR Der/vv Gram/TV V Imp 2Sg 3PlO &SUGGEST) EXCEPT (V Opt 1Sg 2SgO &msyn-Opt-1Sg-2SgO) (*) ;
ADDRELATION ($2 LEFT) (_C1_) TO (1 &msyn-Opt-1Sg-2SgO) ;
} ;
# [takulakkit -> takulaakkit] Immaqa to pillugu ilitsersuummik allassimasoqanngilaq, kisianni uku takulakkit.

#FEJL
#ilinniartitsisup meeqqat ilinniartitsivoq REL ABS HTR
Expand Down
1 change: 1 addition & 0 deletions tools/grammarcheckers/liststemplates.cg3
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ LIST-TAGS +=
&syn-abs-wordorder #!!= - @CODE@
&syn-TUQ-wordorder #!!= - @CODE@
&ADDED #!!= - @CODE@
&msyn-Opt-1Sg-2SgO #!!= - @CODE@
&msyn-personalname-Pl-Sg #!!= - @CODE@
co&msyn-personalname-Pl-Sg #!!= - @CODE@
<sem-personalname> #!!= - @CODE@
Expand Down
45 changes: 24 additions & 21 deletions tools/spellcheckers/strings.default.txt
Original file line number Diff line number Diff line change
@@ -1,36 +1,37 @@
# Add your error:correct string pairs here (not complete words, they have
# a separate file), followed by TAB and the weight for the edit operation:

#disse er for generelle og gør det bare ustyrligt
#aa:a 8
#ee:e 8
#ff:f 8
#ii:i 8
#kk:k 6
#ll:l 7
#nn:n 6
#oo:o 8
#qq:q 5
#ss:s 6

aa:a 8
ee:e 8
ff:f 8
ii:i 8
kk:k 6
ll:l 7
nn:n 6
oo:o 8
qq:q 5
ss:s 6

a:aa 6
g:q 5
i:ii 6
k:kk 6
m:mm 6
##n:nn 6 giver forkerte forslag
s:ss 5
t:tt 8
u:uu 7
#a:aa 6
#g:q 5
#i:ii 6
#k:kk 6
#m:mm 6
#n:nn 6 giver forkerte forslag
#s:ss 5
#t:tt 8
#u:uu 7

s:rs 4

-jut:-t 8
-mi:mi 8
-pput:-upput 8

agguts:aggust 7
aaja:aava 8
aarma:ama 8
agguts:aggust 7
ajoqqus:ajoqus 3
ajuer:akuer 8
ane:anne 3
Expand Down Expand Up @@ -58,6 +59,7 @@ isss:iss 8
itu:ittu 7
iuliu:iliu 8
iussa:iutissa 5
iussin:iuussin 6
laak:lak 8
lalalit:laallit 8
skotlanmi:Skotlandimi 8
Expand All @@ -78,6 +80,7 @@ eratik:ernatik 3
ngersersuu:ngersuu 8
qqisa:qqissa 3
rissat:riat 5
rtsi:rti 9
sa:ssa 8
sis:siis 5
sitsut:sitsisut 4
Expand Down

0 comments on commit 45bc691

Please sign in to comment.