link-grammar-5.8.0/link-grammar/parse/prune.c
/**
 * Find if words w1 and w2 may become adjacent due to optional words.
 * This may happen if they contain only optional words between them.
 *
 * Return true iff they may become adjacent (i.e. all the words
 * between them are optional).
 */
Find if words w1 and w2 may become adjacent due to optional words.
This may happen if they contain only optional words between them.

Return true iff they may become adjacent .
Find if words w1 and w2 may become adjacent due to optional words . This may happen if they contain only optional words between them . Return true iff they may become adjacent .
bool optional_gap_collapse(Sentence sent, int w1, int w2)
{
	for (int w = w1+1; w < w2; w++)
		if (!sent->word[w].optional) return false;
	return true;
}
bool optional_gap_collapse ( Sentence sent , int w1 , int w2 ) { for ( int w = w1 + 1 ; w < w2 ; w ++ ) if ( ! sent -> word [ w ] . optional ) return false ; return true ; }
Find if words w1 and w2 may become adjacent due to optional words.
Find if words w1 and w2 may become adjacent due to optional words .