struct IWNN_WORD_INFO { u8 partsOfSpeechGroup; // Part-of-speech group wchar_t reading[NJ_MAX_LEN+NJ_TERM_SIZE]; // Reading wchar_t candidate[NJ_MAX_RESULT_LEN+NJ_TERM_SIZE]; // Candidate wchar_t additional[NJ_MAX_ADDITIONAL_LEN+NJ_TERM_SIZE]; // Additional information struct { // Independent word information u16 readingLen; // Reading string length u16 candidateLen; // Candidate string length u32 partsOfSpeech; // Part of speech u32 attr; // Attribute data u16 frequency; // Frequency } stem; struct { // Ancillary word information u16 readingLen; // Reading string length u16 candidateLen; // Candidate string length u32 partsOfSpeech; // Part of speech u16 frequency; // Frequency } ancillary; s16 connect; // Connect flag };
u8 partsOfSpeechGroup | Part-of-speech group number for the word to be registered. ■ NJ_PARTS_OF_SPEECH_NOUN : Typical noun, proper noun (can be conjugated with -suru) ■ NJ_PARTS_OF_SPEECH_NOUN_NO_CONJUGATION: Typical noun, proper noun (can be conjugated with -suru) ■ NJ_PARTS_OF_SPEECH_PERSON_NAME: Person's name ■ NJ_PARTS_OF_SPEECH_PLACE_NAME: Place name/station name ■ NJ_PARTS_OF_SPEECH_SYMBOL: Symbol ■ NJ_PARTS_OF_SPEECH_DETAIL: Gets details. When NJ_PARTS_OF_SPEECH_DETAIL is specified, single words are registered based on part-of-speech information: stem for independent words and ancillary for ancillary words. If you are not using the function for getting single-word registration information, be sure to set a value other than NJ_PARTS_OF_SPEECH_DETAIL . |
wchar_t reading | Reading string for the word to be registered. Add a terminator at the end of the string. |
wchar_t candidate | Candidate (conversion result) string for the word to be registered. Add a terminator at the end of the string. |
wchar_t additional | Additional information string for the word to be registered. Add a terminator at the end of the string. If the registration dictionary does not include additional information, the content of this member is ignored. |
struct stem | Independent word information. This includes the reading string length of the independent word part, the candidate string length, the part of speech, attribute data, and frequency information. This information is set using the function for getting word information ( NjxGetWordInfo ) based on data stored in the processing result structure (IWNN_RESULT ). |
struct ancillary | Ancillary word information. This includes the reading string length of the ancillary word part, the candidate string length, the part of speech, attribute data, and frequency information. This information is set using the function for getting word information ( NjxGetWordInfo ) based on data stored in the processing result structure (IWNN_RESULT ). |
s16 connect | Connect flag. Specifies whether to use associative learning versus the word just registered immediately previously. 0: Do not perform associative learning. 1: Perform associative learning. This setting is enabled only for the learning dictionary. |
CONFIDENTIAL