Any module to convert 'whitish' to 'white'?
A sort of de-inflexion module, so to speak.
A sort of de-inflexion module, so to speak.
I try to write all code in Perl, but find I end up writing in bash, CSS, HTML, JS, and SQL, and doing database design, just to get anything done...
how about 'Lingua::EN::Inflexion'
https://metacpan.org/pod/Lingua::EN::Inflexion
The term of art for this is stemming.
Thanx for the replies.
byterock:
As I understand the docs for Lingua::EN::Inflexion, it does inflection, not the reverse.
Aristotle:
You're correct in most contexts. And my ancient (1999) module Lingua::EN::Infinitive has a method stem() for that reason.
But I posted just after reading the docs for Lingua::EN::Inflexion, which is a module about words, so I thought I'd have a little joke in the form of a word play. Hence the use 'de-inflexion'.
Anyway, since my module does not handle adjectives, I'm now updating it, having chosen some words from /usr/share/dict/words.