giellalt / lang-sme

Finite state and Constraint Grammar based analysers and proofing tools, and language resources for the Northern Sami language
https://giellalt.uit.no
GNU General Public License v3.0
6 stars 1 forks source link

{§3}${§ 3} and {3§}${3 §} #33

Open duomdaamaendra opened 2 years ago

duomdaamaendra commented 2 years ago

doesnt work - I mean that the latter one has worked before

albbas commented 2 years ago

Running §3 through the grammarchecker gives this result:

❯ echo '§3'|divvun-checker -a /usr/share/voikko/4/se.zcheck |jq .{
  "errs": [
    [
      "§3",
      0,
      2,
      "typo",
      "Ii leat sátnelisttus",
      [],
      "Čállinmeattáhus"
    ]
  ],
  "text": "§3"
}

The result of running §3 through the spellchecker gives this result:

❯ echo '§3'|hfst-ospell -n 5 -S /usr/share/voikko/3/se.zhfst 
"§3" is NOT in the lexicon:
Corrections for "§3":
ja    42.959839
go    44.787262
ii    45.488708
de    45.913067
❯ echo '§3'|hfst-lookup -q /usr/share/giella/sme/analyser-gt-desc.hfstol 
§3      §3+Num  0,000000
❯ echo '§3'|hfst-lookup -q /usr/share/giella/sme/analyser-gt-norm.hfstol 
§3      §3+?    inf

Where would the proper place to fix this be?