org.apache.lucene.analysis.miscellaneous.WordDelimiterIterator.endsWithPossessive C# (CSharp) Method

endsWithPossessive() private method

Determines if the text at the given position indicates an English possessive which should be removed
private endsWithPossessive ( int pos ) : bool
pos int Position in the text to check if it indicates an English possessive
return bool
	  private bool endsWithPossessive(int pos)
	  {
		return (stemEnglishPossessive && pos > 2 && text[pos - 2] == '\'' && (text[pos - 1] == 's' || text[pos - 1] == 'S') && WordDelimiterFilter.isAlpha(charType(text[pos - 3])) && (pos == endBounds || WordDelimiterFilter.isSubwordDelim(charType(text[pos]))));
	  }