link-grammar-5.8.0/link-grammar/parse/count.c
/**
 * Return the number of optional words strictly between w1 and w2.
 */
Return the number of optional words strictly between w1 and w2.
Return the number of optional words strictly between w1 and w2 .
static int num_optional_words(count_context_t *ctxt, int w1, int w2)
{
	int n = 0;
	for (int w = w1+1; w < w2; w++)
		if (ctxt->sent->word[w].optional) n++;
	return n;
}
static int num_optional_words ( count_context_t * ctxt , int w1 , int w2 ) { int n = 0 ; for ( int w = w1 + 1 ; w < w2 ; w ++ ) if ( ctxt -> sent -> word [ w ] . optional ) n ++ ; return n ; }
Return the number of optional words strictly between w1 and w2.
Return the number of optional words strictly between w1 and w2 .