Class ApostropheFilter

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public final class ApostropheFilter
    extends TokenFilter
    Strips all characters after an apostrophe (including the apostrophe itself).

    In Turkish, apostrophe is used to separate suffixes from proper names (continent, sea, river, lake, mountain, upland, proper names related to religion and mythology). This filter intended to be used before stem filters. For more information, see Role of Apostrophes in Turkish Information Retrieval