link-grammar-5.8.0/link-grammar/dict-common/dict-common.c
/**
 * Return true if word is in dictionary, or if word is matched by
 * regex.
 */
Return true if word is in dictionary, or if word is matched by
regex.
Return true if word is in dictionary or if word is matched by regex .
bool dictionary_word_is_known(const Dictionary dict, const char * word)
{
	const char * regex_name;
	if (dict_has_word(dict, word)) return true;
	regex_name = match_regex(dict->regex_root, word);
	if (NULL == regex_name) return false;
	return dict_has_word(dict, regex_name);
}
bool dictionary_word_is_known ( const Dictionary dict , const char * word ) { const char * regex_name ; if ( dict_has_word ( dict , word ) ) return true ; regex_name = match_regex ( dict -> regex_root , word ) ; if ( NULL == regex_name ) return false ; return dict_has_word ( dict , regex_name ) ; }
Return true if word is in dictionary, or if word is matched by
 regex.
Return true if word is in dictionary or if word is matched by regex .