NonTermMinSpan feature function