Class Noun

java.lang.Object
com.articulate.sigma.nlg.Noun

public class Noun extends Object
Provides functionality related to nouns and NLG.
  • Constructor Details

    • Noun

      public Noun()
  • Method Details

    • aOrAn

      public static String aOrAn(String input)
      Look at first letter of input to determine whether it should be preceded by "a" or "an".
      Parameters:
      input -
      Returns:
      "a" or "an"
    • takesIndefiniteArticle

      public static boolean takesIndefiniteArticle(String noun, KB kb)
      Determine whether the given noun requires an indefinite article ("a"/"an").
      Parameters:
      noun -
      kb -
      Returns: