IStemmer::GenerateWordForms Method
Generates alternative forms for a word and puts these forms in the WordFormSink.
Syntax
HRESULT GenerateWordForms( WCHAR const *pwcInBuf, ULONG cwc, IWordFormSink *pWordFormSink );
Parameters
- pwcInBuf
[in] Pointer to a buffer that contains the word to be stemmed. The characters in pwcInBuf are represented in Unicode.- cwc
[in] Number of characters in pwcInBuf.- pWordFormSink
[in] Pointer to a WordFormSink object that receives and handles the alternative word forms generated by this method.
Return Value
Returns one of the following values.
S_OK Successful completion. E_INVALIDARG Invalid argument. Either pwcInBuf or pWordFormSink is NULL.
See Also
Implementing a Stemmer, Language Resource Samples, Secure Code Practices, WordFormSink