lq-text: LQT_GenerateWordFromRoot

API char * LQT_GenerateWordFromRoot (db, WordInfo, Flags) t_LQTEXT_Database *db; t_WordInfo *WordInfo; unsigned int Flags;

Purpose

LQT_Generate­Word­From­Root tries to generate the original word from the given flags. Sometimes multiple plurals reduce to the same singular, such as brothers and brethren both being forms of brother, and in these cases the generated word may be incorrect. Other cases include words ending in the letter o, which may or may not have has an es stripped off, so that SunOS (the operating system) is indexed as Suno, and incorrectly pluralised as Sunoes.

Returns

A pointer to a static buffer

Bugs

Should allow per-database stemming options.

See Also: