Enum Operator

  • All Implemented Interfaces:
    Serializable, Comparable<Operator>

    public enum Operator
    extends Enum<Operator>
    A collection of quantifiers. This is the exhaustive list of quantifiers our system knows about.
    Author:
    Gabor Angeli
    • Enum Constant Detail

      • EVERY

        public static final Operator EVERY
      • EACH

        public static final Operator EACH
      • THE_LOT_OF

        public static final Operator THE_LOT_OF
      • ALL_OF

        public static final Operator ALL_OF
      • EACH_OF

        public static final Operator EACH_OF
      • FOR_ALL

        public static final Operator FOR_ALL
      • FOR_EVERY

        public static final Operator FOR_EVERY
      • FOR_EACH

        public static final Operator FOR_EACH
      • EVERYONE

        public static final Operator EVERYONE
      • NUM_NUM

        public static final Operator NUM_NUM
      • NUM_NUM_NUM

        public static final Operator NUM_NUM_NUM
      • NUM_NUM_NUM_NUM

        public static final Operator NUM_NUM_NUM_NUM
      • IMPLICIT_NAMED_ENTITY

        public static final Operator IMPLICIT_NAMED_ENTITY
      • NEITHER

        public static final Operator NEITHER
      • NO_ONE

        public static final Operator NO_ONE
      • NOBODY

        public static final Operator NOBODY
      • EXCEPT

        public static final Operator EXCEPT
      • UNARY_NO

        public static final Operator UNARY_NO
      • UNARY_NOT

        public static final Operator UNARY_NOT
      • UNARY_NO_ONE

        public static final Operator UNARY_NO_ONE
      • UNARY_NT

        public static final Operator UNARY_NT
      • UNARY_BUT

        public static final Operator UNARY_BUT
      • UNARY_EXCEPT

        public static final Operator UNARY_EXCEPT
      • GENERAL_NEG_POLARITY

        public static final Operator GENERAL_NEG_POLARITY
      • SOME

        public static final Operator SOME
      • SEVERAL

        public static final Operator SEVERAL
      • EITHER

        public static final Operator EITHER
      • LESS_THAN

        public static final Operator LESS_THAN
      • SOME_OF

        public static final Operator SOME_OF
      • ONE_OF

        public static final Operator ONE_OF
      • AT_LEAST

        public static final Operator AT_LEAST
      • A_FEW

        public static final Operator A_FEW
      • AT_LEAST_A_FEW

        public static final Operator AT_LEAST_A_FEW
      • THERE_BE

        public static final Operator THERE_BE
      • THERE_BE_A_FEW

        public static final Operator THERE_BE_A_FEW
      • THERE_EXIST

        public static final Operator THERE_EXIST
      • NUM_OF

        public static final Operator NUM_OF
      • NOT_ALL

        public static final Operator NOT_ALL
      • NOT_EVERY

        public static final Operator NOT_EVERY
      • MOST

        public static final Operator MOST
      • MORE

        public static final Operator MORE
      • MANY

        public static final Operator MANY
      • ENOUGH

        public static final Operator ENOUGH
      • MORE_THAN

        public static final Operator MORE_THAN
      • LOTS_OF

        public static final Operator LOTS_OF
      • PLENTY_OF

        public static final Operator PLENTY_OF
      • HEAPS_OF

        public static final Operator HEAPS_OF
      • A_LOAD_OF

        public static final Operator A_LOAD_OF
      • LOADS_OF

        public static final Operator LOADS_OF
      • TONS_OF

        public static final Operator TONS_OF
      • BOTH

        public static final Operator BOTH
      • JUST_NUM

        public static final Operator JUST_NUM
      • ONLY_NUM

        public static final Operator ONLY_NUM
      • AT_MOST_NUM

        public static final Operator AT_MOST_NUM
    • Field Detail

      • GLOSSES

        public static final Set<String> GLOSSES
      • valuesByLengthDesc

        public static final List<Operator> valuesByLengthDesc
        An ordered list of the known operators, by token length (descending). This ensures that we're matching the widest scoped operator.
      • surfaceForm

        public final String surfaceForm
      • quantifierGlosses

        public static final Set<String> quantifierGlosses
    • Method Detail

      • values

        public static Operator[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Operator c : Operator.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Operator valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • isUnary

        public boolean isUnary()