divvun / divvun-gramcheck-web

Grammar checker for web word processors, targeted at minority and indigenous languages, but open for everyone.
GNU General Public License v3.0
1 stars 0 forks source link

Order of errors not in document order #1

Closed snomos closed 2 years ago

snomos commented 5 years ago

For the following text:

– Mun háliidan doarjut Bonju Sápmelaččaid ja illudin searvat ráidovázzimii singuin lávvardaga, cealká gielda- ja ođasmahttinministtar Jan Tore Sanner,gii ovddasvástida ovddasvástida sámi áššiid ráđđehusas.Europride-festivála loahpahuvvui ráidovázzimiin Oslo gáhtain mannan lávvardaga?Bonju Sápmelaččat vázze sierra joavkun dán ráidovázzimis!Lassin dasa lei vel Queering Sápmi-čájálmas Pride Parkas Ráđđeviesu šiljus.

the grammar checker reports three errors:

in that order. But in the text, the order is actually:

Not a major issue, but surprising to the user.

This is true for both MSWord and GoogleDocs, so appears to be a thing on the server.

bbqsrc commented 5 years ago

More likely to be UI or libdivvun, as nothing changes the order on the server as far as I can see.

snomos commented 5 years ago

It is the UI. There are two lávvardaga in the text, and the first is before the ,giicase, and is highlighted. But that is not the one with the error. libdivvun reports the offset of the error correctly as far as I can see, so the error must then be in the UI. Here is the output from libdivvun:

$ echo '– Mun háliidan doarjut Bonju Sápmelaččaid ja illudin searvat ráidovázzimii singuin lávvardaga, cealká gielda- ja ođasmahttinministtar Jan Tore Sanner,gii ovddasvástida ovddasvástida sámi áššiid ráđđehusas.Europride-festivála loahpahuvvui ráidovázzimiin Oslo gáhtain mannan lávvardaga?Bonju Sápmelaččat vázze sierra joavkun dán ráidovázzimis!Lassin dasa lei vel Queering Sápmi-čájálmas Pride Parkas Ráđđeviesu šiljus.' | divvun-checker -a tools/grammarcheckers/se.zcheck | jq .
{
  "errs": [
    [
      "Bonju",
      23,
      28,
      "typo",
      "Ii leat sátnelisttus",
      [],
      "Čállinmeattáhusat"
    ],
    [
      ",gii",
      149,
      153,
      "no-space-after-punct-mark",
      "Ii leat gaska \",\" maŋis",
      [
        ", gii"
      ],
      "Sátnegaskameattáhusat"
    ],
    [
      "lávvardaga",
      273,
      283,
      "typo",
      "Ii leat sátnelisttus",
      [],
      "Čállinmeattáhusat"
    ]
  ],
  "text": "– Mun háliidan doarjut Bonju Sápmelaččaid ja illudin searvat ráidovázzimii singuin lávvardaga, cealká gielda- ja ođasmahttinministtar Jan Tore Sanner,gii ovddasvástida ovddasvástida sámi áššiid ráđđehusas.Europride-festivála loahpahuvvui ráidovázzimiin Oslo gáhtain mannan lávvardaga?Bonju Sápmelaččat vázze sierra joavkun dán ráidovázzimis!Lassin dasa lei vel Queering Sápmi-čájálmas Pride Parkas Ráđđeviesu šiljus."
}
snomos commented 2 years ago

I am not able to reproduce this anymore, consider it fixed.