diff options
| author | bculkin2442 <bjculkin@mix.wvu.edu> | 2017-04-11 21:57:48 -0400 |
|---|---|---|
| committer | bculkin2442 <bjculkin@mix.wvu.edu> | 2017-04-11 21:57:48 -0400 |
| commit | 6c307cc6dfb8088281c1432814068f472d0a03d4 (patch) | |
| tree | f1ec11d02d669e44ba800f48345f0c645a097329 /src/main/java/bjc/inflexion/nouns/InflectionAffixes.java | |
| parent | c285b4480963e0ee8b8d32312c6a4c7c94dc2840 (diff) | |
Cleanup
Diffstat (limited to 'src/main/java/bjc/inflexion/nouns/InflectionAffixes.java')
| -rw-r--r-- | src/main/java/bjc/inflexion/nouns/InflectionAffixes.java | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/main/java/bjc/inflexion/nouns/InflectionAffixes.java b/src/main/java/bjc/inflexion/nouns/InflectionAffixes.java index 4061776..4b1d2cf 100644 --- a/src/main/java/bjc/inflexion/nouns/InflectionAffixes.java +++ b/src/main/java/bjc/inflexion/nouns/InflectionAffixes.java @@ -19,55 +19,55 @@ import java.util.regex.Pattern; /** * Utility methods for constructing inflection affixes. - * + * * @author EVE * */ public class InflectionAffixes { /* * Template for 'complete' affix patterns. - * + * * Match the start of the word, followed by zero or more word * characters, followed by the suffix, then the end of the string. - * + * * The word is in a capturing group named 'stem'. */ private static final String COMPLETE_PATT_FMT = "(?<stem>\\w*)%s$"; /* * Template for 'incomplete' affix patterns. - * + * * Match the start of the word, followed by one or more word characters, * followed by the suffix, then the end of the string. - * + * * The word is in a capturing group named 'stem'. */ private static final String INCOMPLETE_PATT_FMT = "(?<stem>\\w+)%s$"; /** * Create an affix that's a word by itself. - * + * * @param suffix * The suffix to use. - * + * * @return A affix that represents the suffix. */ - public static InflectionAffix complete(String suffix) { - Pattern patt = Pattern.compile(String.format(COMPLETE_PATT_FMT, suffix)); + public static InflectionAffix complete(final String suffix) { + final Pattern patt = Pattern.compile(String.format(COMPLETE_PATT_FMT, suffix)); return new SimpleInflectionAffix("%s" + suffix, patt); } /** * Create an affix that's not a word by itself. - * + * * @param suffix * The suffix to use. - * + * * @return An affix that represents the suffix. */ - public static InflectionAffix incomplete(String suffix) { - Pattern patt = Pattern.compile(String.format(INCOMPLETE_PATT_FMT, suffix)); + public static InflectionAffix incomplete(final String suffix) { + final Pattern patt = Pattern.compile(String.format(INCOMPLETE_PATT_FMT, suffix)); return new SimpleInflectionAffix("%s" + suffix, patt); } |
