Well, sorry for long text :-(
* Some info about Abiword barbarisms support, my
explanation about what is a barbarism is taken from here:
* What is a barbarism
Barbarism is a problem that manly concerns to
minority languages, i.e. languages that are
competing, in the same territory, with a more
powerful one, called "rooflanguage", for example
Welsh, Catalan, Occitan, and others.
When two languages compete in the same territory
comes up interferences, but they are not symmetric.
The roof language is weakly affected but the
minority one can be strongly affected, and can
disappear (glottophagy). One of these
interferences is barbarism.
In Catalan: "tamany" is taked from Spanish "tamaño"
and should be corrected by "mida" or "grandària", means
"size", in English. Any spellchekcer without barbarism
support doesn't suggest "mida" or "grandària" when
tamany is checked.
* How to implement it (idea or aproach)
Using the MyThesaurus code of OpenOffice.org, with an
special thesaurus file where entries are barbarisms and
their synonyms are the correct suggestions.
Adding something like this in suggest() function
if ((nsug < maxSug) && (nsug > -1))
nsug = barbarims(wlst, word, nsug);
And coding barbarims function:
barbarisms() must check the word in the barbarism
If word is in 'thesaurus' file then barbarisms()
must add 'synonyms' of word as suggestions in wlst.
barbarisms() must update nsug properly.
* Known problems in this aproach:
- Working at word level, not sentence level. We are
just hacking a spell checker, not doing a grammar
checker. So, some barbarims can't be corrected. It
can't be solved.
- Currently, words that can be declined have to be
coded several times (plurals, verbs declinations, etc).
It's reported as a enhancement of MyThesaurus in OOo