english
Class EnglishNoun

java.lang.Object
  extended by english.EnglishNoun

public class EnglishNoun
extends java.lang.Object

An experimental class that provides static methods for testing and computing various properties of strings that are presumed to be English nouns.

Author:
James A. Mason

Constructor Summary
EnglishNoun()
           
 
Method Summary
static boolean isPlural(java.lang.String word)
          Tests whether the given (presumed) English noun is plural.
static boolean isSingular(java.lang.String word)
          Tests whether the given (presumed) English noun is singular.
static java.lang.String pluralOf(java.lang.String word)
          Returns the plural of a given (presumed) English word.
static java.lang.String singularOf(java.lang.String word)
          Returns the singular of a given (presumed) English word.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnglishNoun

public EnglishNoun()
Method Detail

isPlural

public static boolean isPlural(java.lang.String word)
Tests whether the given (presumed) English noun is plural. A word like "sheep" that can be either singular or plural yields true.


isSingular

public static boolean isSingular(java.lang.String word)
Tests whether the given (presumed) English noun is singular. A word like "sheep" that can be either singular or plural yields true.


pluralOf

public static java.lang.String pluralOf(java.lang.String word)
Returns the plural of a given (presumed) English word. The given word may be singular or (already) plural.


singularOf

public static java.lang.String singularOf(java.lang.String word)
Returns the singular of a given (presumed) English word. The given word may be plural or (already) singular.