GreynirEngine
GreynirEngine copied to clipboard
Lookup verb form variants
Is there a way to get verb form variants in the same way you can get case variants for nouns?
Something like
>>> BIN_Db.lookup_past_participle("sækja")
The use case is for a results highlighter. Lemmas are indexed, but I would like to highlight the original forms based on search string lemmas. For this I need to potentially highlight derived word forms. I’m basically writing a get_all_meaning_wordforms
function that returns a set of strings that should be highlighted.