Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Does hunspell/spylls have facility to change the root of the word? #24

Open
exander77 opened this issue May 2, 2022 · 1 comment

Comments

@exander77
Copy link

exander77 commented May 2, 2022

Does hunspell/spylls have facility to change the root of the word when making word forms?

I am looking through cs_CZ and a lot of words are directly written there in all forms.

Like stůl (table):

stole
stolech
stolem
stoletím
stolu
stolů
stolům
stoly
stůl

Which seems highly inefficient to me.
But it may be that there is no facility to implement character transform as ů is becoming o.
Or is there something in hunspell format that can handle this?

Basically, every male gender word with ů gets transformed like this into o form. And there are several transformations like these in Czech language.

@zverok
Copy link
Owner

zverok commented Jun 3, 2022

There is no way in Hunspell to declare explicitly "root of the word has to change", but it can be imitated to some extent by declaring that stůl root has suffixes ole, olech, ..., that also, when applied to the root, remove ůl from its end.
This is wrong from a morphological structure point of view, but Hunspell actually hardly tries to correspond to how the real language morphology works, it just named some of its features "prefix" and "suffix", but they rarely correspond to what linguists would call that 🤷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants