Class Nouns


  • public class Nouns
    extends java.lang.Object
    Class taking care of Noun manipulation
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      private static class  Nouns.ReplaceRule  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Nouns()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String singularize​(java.lang.String plural)
      Converts given pluralized noun into the singular form.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • SINGULAR_RULES

        private static final java.util.List<Nouns.ReplaceRule> SINGULAR_RULES
      • SINGULAR_DALI_RULES

        private static final java.util.List<Nouns.ReplaceRule> SINGULAR_DALI_RULES
        Replacement rules based on the routine applied by the Dali project. Applied as a fallback if the other rules didn't yield a match.
    • Constructor Detail

      • Nouns

        private Nouns()
    • Method Detail

      • singularize

        public static java.lang.String singularize​(java.lang.String plural)
        Converts given pluralized noun into the singular form. If no singular form could be determined, the given word itself is returned.
        Parameters:
        plural - plural word
        Returns:
        singular form, if available