link-grammar-5.8.0/link-grammar/tokenize/wordgraph.c
/**
 * Given a word, find its alternative ID.
 * An alternative is identified by a pointer to its first word, which is
 * getting set at the time the alternative is created at
 * issue_word_alternative(). (It could be any unique identifier - for coding
 * convenience it is a pointer.)
 *
 * Return the alternative_id of this alternative.
 */
Given a word, find its alternative ID.
An alternative is identified by a pointer to its first word, which is
getting set at the time the alternative is created at
issue_word_alternative(). (It could be any unique identifier - for coding
convenience it is a pointer.)

Return the alternative_id of this alternative.
Given a word find its alternative ID . An alternative is identified by a pointer to its first word which is getting set at the time the alternative is created at issue_word_alternative () . ( It could be any unique identifier - for coding convenience it is a pointer . ) Return the alternative_id of this alternative .
static Gword *find_alternative(Gword *word)
{
	assert(NULL != word, "find_alternative(NULL)");
	assert(NULL != word->alternative_id, "find_alternative(%s): NULL id",
	       word->subword);
#if 0
	lgdebug(+0, "find_alternative(%s): '%s'\n",
	        word->subword, debug_show_subword(word->alternative_id));
#endif
	return word->alternative_id;
}
static Gword * find_alternative ( Gword * word ) { assert ( NULL != word , " " ) ; assert ( NULL != word -> alternative_id , " " , word -> subword ) ; #if 0 lgdebug ( +0 , " \n " , word -> subword , debug_show_subword ( word -> alternative_id ) ) ; #endif return word -> alternative_id ; }
Given a word, find its alternative ID.
Given a word find its alternative ID .