Class SpanishNoun

java.lang.Object
adalid.commons.i18n.SpanishNoun

public class SpanishNoun extends Object
Author:
Jorge Campins
  • Constructor Details

    • SpanishNoun

      public SpanishNoun()
  • Method Details

    • getArticles

      public static Set<String> getArticles()
    • getConjunctions

      public static Set<String> getConjunctions()
    • getPrepositions

      public static Set<String> getPrepositions()
    • capitalize

      public static String capitalize(String noun)
      Returns the nicely capitalized form of a noun.
      Parameters:
      noun - a noun
      Returns:
      capitalized noun
    • isPlural

      public static boolean isPlural(String word)
      Tests whether the given (presumed) Spanish noun is plural.
      Parameters:
      word - a word
      Returns:
      true if word is plural; false otherwise
    • isSingular

      public static boolean isSingular(String word)
      Tests whether the given (presumed) Spanish noun is singular.
      Parameters:
      word - a word
      Returns:
      true if word is singular; false otherwise
    • pluralOf

      public static String pluralOf(String word)
      Returns the plural of a given (presumed) Spanish word. The given word may be singular or (already) plural.
      Parameters:
      word - a word
      Returns:
      the plural of word
    • singularOf

      public static String singularOf(String word)
      Returns the singular of a given (presumed) Spanish word. The given word may be plural or (already) singular.
      Parameters:
      word - a word
      Returns:
      the singular of word
    • pluralOfMultiwordExpression

      public static String pluralOfMultiwordExpression(String mwe)