|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectenglish.EnglishWord
public class EnglishWord
An experimental class that provides static methods for testing and computing various properties of strings that are presumed to be English words.
| Constructor Summary | |
|---|---|
EnglishWord()
|
|
| Method Summary | |
|---|---|
static boolean |
isPreposition(java.lang.String word)
Tests whether a given String can be an English preposition. |
static java.util.ArrayList |
processApostrophe(java.lang.String givenWord)
Tests and processes a given String (assumed to be a word with no space in it) which may have apostrophes in it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnglishWord()
| Method Detail |
|---|
public static boolean isPreposition(java.lang.String word)
public static java.util.ArrayList processApostrophe(java.lang.String givenWord)
If there is no apostrophe in the given String, the method returns null. If the string (e.g. "o'clock", "O'Reilly") has an apostrophe but is not one of the types that the method recognizes, the "expanded" String in the returned value is the same as the given String, and the description in the returned value is "U" for Unknown.
Note: This method retains the initial capitalization of the first letter
of the given string.
givenWord - a presumed English word that may have apostrophes in it.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||