NjxDeleteWord Function

Description

This function deletes words based on the following search results.
        - Search results where words were obtained from a learnable dictionary (user dictionary or learning dictionary).
        - Search results where words were obtained from a pseudo-dictionary.
An error results if any processing result other than those given above is specified. An error also results if a processing result for anything other than dictionary look-up is specified.

Syntax

#include <mw/iwnn/iwnnCTR.h>

s16 NjxDeleteWord(
     IWNN_CLASS* iwnn,                            // Parsing information class
     const IWNN_RESULT* result                    // Processing result
);

Arguments

NameDescription
IN IWNN_CLASS* iwnn Parsing information class
An error results if NULL is specified.
IN const IWNN_RESULT* result The result of processing.
An error results if NULL is specified.

Return Value

s16 Negative value: Error
Other: Normal exit

Error Code Description of Error
NJ_ERR_PARAM_ENVIRONMENT_NULL A NULL pointer was specified for iwnn
NJ_ERR_PARAM_RESULT_NULL NULL was set in result
NJ_ERR_DIC_HANDLE_NULL The dictionary handle in result is NULL
NJ_ERR_DIC_TYPE_INVALID The dictionary handle in result represents a dictionary type other than a learning dictionary or user dictionary
NJ_ERR_INVALID_RESULT A result not generated by a dictionary look-up was specified
NJ_ERR_WORD_NOT_FOUND The word specified in result is already deleted
NJ_ERR_PROTECTION_ERR Operations have been performed on memory secured by a learning dictionary function
NJ_ERR_DIC_BROKEN   ■ The add location cannot be obtained from the learning dictionary or user dictionary
  ■ The number of registered words according to the learning dictionary or user dictionary header is greater than the maximum number of registered words
  ■ The data in the learning dictionary queue specified by the learning dictionary or user dictionary is corrupted

CONFIDENTIAL