edu.northwestern.at.morphadorner.corpuslinguistics.adornedword

## Class PorterStopWordFilter

- java.lang.Object
- - edu.northwestern.at.morphadorner.corpuslinguistics.adornedword.PorterStopWordFilter

- All Implemented Interfaces:
    AdornedWordFilter

      public class PorterStopWordFilter
      extends java.lang.Object
      implements AdornedWordFilter

  An Adorned word filter for Martin Porter's stop word list.

  These English stop words were suggested by Martin Porter.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected static StopWords` | `stopWords` Stop words.

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `PorterStopWordFilter()` Create the stop word filter.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `accept(AdornedWord adornedWord)` Tests if a specified adorned word should be included.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### stopWords

          protected static StopWords stopWords

      Stop words.

  - ### Constructor Detail

    - #### PorterStopWordFilter

          public PorterStopWordFilter()

      Create the stop word filter.

  - ### Method Detail

    - #### accept

          public boolean accept(AdornedWord adornedWord)

      Tests if a specified adorned word should be included.
      Specified by:
        `accept` in interface `AdornedWordFilter`
      Parameters:
        `adornedWord` - The adorned word to check.
      Returns:
        true to accept the adorned word.