edu.northwestern.at.morphadorner.corpuslinguistics.inflector.wordrule

## Interface WordRule

- All Known Implementing Classes:
    AbstractRegexReplacementRule, CategoryInflectionRule, IrregularMappingRule, RegexReplacementRule, SuffixInflectionRule

      public interface WordRule

  Interface for a rule to transform a word.

  Original code written by Tom White under the Apache v2 license. Modified by Philip R. Burns for integration into MorphAdorner.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `applies(java.lang.String word)` Tests to see if this rule applies for the given word.
    `java.lang.String` | `apply(java.lang.String word)` Applies this rule to the word, and transforming it into a new form.

- - ### Method Detail

    - #### applies

          boolean applies(java.lang.String word)

      Tests to see if this rule applies for the given word.
      Parameters:
        `word` - The word that is being tested
      Returns:
        `true` if this rule should be applied, `false` otherwise

    - #### apply

          java.lang.String apply(java.lang.String word)

      Applies this rule to the word, and transforming it into a new form.
      Parameters:
        `word` - The word to which to apply this rule.
      Returns:
        The transformed word.