onTermMinSpan feature function