Comment 5 for bug 314281

Revision history for this message
musically_ut (musically-ut) wrote :

I can see a simple way of dealing with simple morphological rules, simple text files as plugins. For example, if one allows perl like regular expression matching (though the current rules can be implemented using only prefix/suffix matching), I would write out the replacement rules as the follows:

english.rep:
---------------------------------------------------------
/ies$/ -> 'y'
/n't$/ -> ''
/ness$/ -> ''
/'s$/ -> ''
/ied$/ -> 'y'
/^un/ -> ''
/ment$/ -> ''
/ing$/ -> '', 'e'
/ning$/ -> 'n'
/s$/ -> ''
/ly$/ -> ''
/ed$/ -> '', 'e'
/es$/ -> '', 'e'
/er$/ -> ''
/ily$/ -> 'y'
---------------------------------------------------------

french.rep
---------------------------------------------------------
/ons$/ -> 'er', 're', 'ir'
/ez$/ -> 'er', 're', 'ir'
/ent$/ -> 'er', 're', 'ir'
/es$/ -> 'er'
/s$/ -> '', 're'
/e$/ -> 'er'
/u$/ -> 're'
/(e-accent ague)$/ -> 'er'
/i$/ -> 'ir'
// -> 're'
---------------------------------------------------------

How does that sound?

~
musically_ut

PS: And, while writing that, I stumbled across another bug, so the corrected diff is attached.
PPS: Unfortunately, as KDE4 had scanty proxy support, I have shifted almost completely to Gnome. :)