diff options
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); } |
