|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.site.elkb.Variant
public class Variant
Allows to obtain a variant of an English spelling. A British spelling variant can be obtained form an American spelling and vice-versa.
The default American and British word list is AmBr.lst contained in the $HOME/roget_elkb directory. It is loaded by the default constructor.
Field Summary | |
---|---|
static java.lang.String |
AMBR_FILE
Location of the default American and British spelling word list. |
static java.lang.String |
ELKB_PATH
Location of the ELKB data directory. |
static java.lang.String |
USER_HOME
Location of user's Home directory. |
Constructor Summary | |
---|---|
Variant()
Default constructor. |
|
Variant(java.lang.String filename)
Constructor that builds the Variant object using the information contained in the specified file. |
Method Summary | |
---|---|
java.lang.String |
amToBr(java.lang.String american)
Returns the British spelling of a word, or null if the word cannot be found. |
java.lang.String |
brToAm(java.lang.String british)
Returns the American spelling of a word, or null if the word cannot be found. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String USER_HOME
public static final java.lang.String ELKB_PATH
public static final java.lang.String AMBR_FILE
Constructor Detail |
---|
public Variant()
public Variant(java.lang.String filename)
American spelling:British spellling
. For example:
airplane:aeroplane
filename
- Method Detail |
---|
public java.lang.String amToBr(java.lang.String american)
american
-
public java.lang.String brToAm(java.lang.String british)
british
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |