public final class DeNormalize
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
capitalizeI(java.lang.String line) |
static java.lang.String |
capitalizeLineFirstLetter(java.lang.String line)
Capitalize the first letter of a line.
|
static java.lang.String |
capitalizeNameTitleAbbrvs(java.lang.String line)
Capitalize the first character of the titles of names: Mr Mrs Ms Miss Dr Prof
|
static java.lang.String |
joinContractions(java.lang.String line)
Scanning the line from left-to-right, a contraction suffix preceded by a space will become just
the contraction suffix.
|
static java.lang.String |
joinHyphen(java.lang.String line)
Scanning from left-to-right, a hyphen surrounded by a space before and after it will become
just the hyphen.
|
static java.lang.String |
joinPunctuationMarks(java.lang.String line)
Scanning from left-to-right, a comma or period preceded by a space will become just the
comma/period.
|
static java.lang.String |
processSingleLine(java.lang.String normalized)
Apply all the denormalization methods to the normalized input line.
|
static java.lang.String |
replaceBracketTokens(java.lang.String line)
Case-insensitively replace all of the character sequences that represent a bracket character.
|
public static java.lang.String processSingleLine(java.lang.String normalized)
normalized
- public static java.lang.String capitalizeLineFirstLetter(java.lang.String line)
line
- The single-line input stringpublic static java.lang.String joinPunctuationMarks(java.lang.String line)
line
- The single-line input stringpublic static java.lang.String joinHyphen(java.lang.String line)
line
- The single-line input stringpublic static java.lang.String joinContractions(java.lang.String line)
wo n'tbecomes
won't
line
- The single-line input stringpublic static java.lang.String capitalizeNameTitleAbbrvs(java.lang.String line)
line
- The single-line input stringpublic static java.lang.String capitalizeI(java.lang.String line)
public static java.lang.String replaceBracketTokens(java.lang.String line)
line
- The single-line input string