Text::Unmunch find all endings of a word for hunspell
use Text::Unmunch; my $unmunch = Text::Unmunch->new{ aff => "en_US.aff", wf => "iren.dic", sfx => "-s", pfx => "-p", debug => "-d=2" }); $unmunch->get_endings();
Lists all endings of a word, that hunspell will generate. The listed words here will be accepted as good words by hunspell. The arguments for Text::Unmunch are:
If both sfx and pfx are missing, both will be displayed.
Only the aff file and the word file are required parameters.
This function reads the aff and the word file, finds the possible word endings for the words in the word file, and prints the result onto the screen.
Text::Unmunch does not handle two level affixing. If a result word has switches, these will not automatically be searched and shown. If you are interested, what they do, you must edit a word file for that and let you show in a second step, what hunspell generates. Two level affixing is included as far as I know, only in the Hungarian affix file.
This module is useful, when you work with hunspell, and want an easy way to find, what endings do switches generate. There are some programs in the hunspell distribution to find the endings, unfortunately none of them works properly. Therefore this program.
Developer: Eleonora, email <eleonora46@gmx.net>
Copyrights 2020 Eleonora, email <eleonora46@gmx.net>
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://www.perl.com/perl/misc/Artistic.html
To install Text::Unmunch, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::Unmunch
CPAN shell
perl -MCPAN -e shell install Text::Unmunch
For more information on module installation, please visit the detailed CPAN module installation guide.