The Esperanto spell checker in LanguageTool gives fairly frequent false errors for ordinal numbers such as “123-a” or “123-an” which should be correct (it’s like 123rd in English).
For example with the correct sentence “La 20-a jarcento.” (= the 20th century), LanguageTool wrongly underlines “a” in “20-a”.
I’m not sure yet how to fix it. I suppose I should be able to create a patch for the Hunspell eo.aff file (languagetool-language-modules/eo/src/main/resources/org/languagetool/resource/eo/hunspell/eo.aff) but I never got familiar enough with the Hunspell syntax.
I see COMPOUNDRULE being used for English ordinal numbers in https://github.com/hunspell/hunspell/blob/master/tests/compoundrule4.aff but it’s not clear to me yet how it works.
Any idea how it could be fixed?