|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.uottawa.balie.Canonizer
public class Canonizer
Offers static function to convert a word into its canon form.
| Field Summary | |
|---|---|
static int |
RULE_EXPAND_LIGATURES
Changes ligature character in their multi-letter equivalent. |
static int |
RULE_LOWERCASE
Puts every letters in lowercase |
static int |
RULE_NORMALIZE_PUNCT
Normalizes punctuation (e.g.: all unicode quotes are resolved to ") |
static int |
RULE_REMOVE_INTERNAL_PUNCT
Removes internal punctuation, that is punctuation after the first letter and before the last letter. |
static int |
RULE_STRIP_ACCENTS
Strip Accents. |
| Constructor Summary | |
|---|---|
Canonizer()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
CanonForm(java.lang.String pi_Raw,
int pi_Rules,
PunctLookup pi_PunctLookup,
LigatureLookup pi_LigatureLookup,
AccentLookup pi_AccentLookup)
Transforms a word in its canon version. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int RULE_LOWERCASE
public static final int RULE_NORMALIZE_PUNCT
public static final int RULE_REMOVE_INTERNAL_PUNCT
PunctLookup.
PunctLookup,
Constant Field Valuespublic static final int RULE_EXPAND_LIGATURES
public static final int RULE_STRIP_ACCENTS
| Constructor Detail |
|---|
public Canonizer()
| Method Detail |
|---|
public static java.lang.String CanonForm(java.lang.String pi_Raw,
int pi_Rules,
PunctLookup pi_PunctLookup,
LigatureLookup pi_LigatureLookup,
AccentLookup pi_AccentLookup)
pi_Raw - The raw version of the wordpi_Rules - The rules to apply using a bitwise OR (ex.: RULE_EXPAND_LIGATURES | RULE_REMOVE_INTERNAL_PUNCT)pi_PunctLookup - The punctuation lookuppi_LigatureLookup - The ligature lookup
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||