<!DOCTYPE File PUBLIC "-//Liam Quin//DTD C API Documentation v1.1//EN" "doc.dtd"><File>
<Entry dir="liblqtext">
<Function File="../../src/liblqtext/root.c">
<Name>LQT_ReduceWordToRoot</Name>
<Class>Language/Stemming
<Purpose>
Reduces the word in the WordInfo pointed to by its argument to an
English root, by stripping plurals and possessives.
WordInfo->Length is modified as necessary, and WordInfo->Flags
are updated by or'ing any necessary items from <h>wordrules.h</h>.
The word can grow by up to two characters in length.
It is the caller's responsibility to allocate enough space.
You can also use the WORDROOT macro from <h>wordrules.h</h>,
which calls LQT_ReduceWordToRoot only if it might make a change.
<Returns>
A pointer to WordInfo's Word
<Bugs>
This routine is only sensible for English.
<SeeAlso>
LQT_ReadWordFromStringPointer
</Function>
<Decl>
API char *
LQT_ReduceWordToRoot(db, WordInfo)
    t_LQTEXT_Database *db;
    t_WordInfo *WordInfo;
</Decl>
</Entry>
