object MathExpr
Expression in a language to represent terms in HoTT and trees representing them in prose, including partially collapsed trees. At the level of structure, we do not make distinctions between words and phrases; the distinction is specific to trees, where a word is a leaf.
We model expressions that will mostly become Terms in HoTT, mostly following Naproche. At the upper level are sentential phrases. We typically start with a tree that encodes a sentential phrase.
We have various case classes for syntax, but a single trait
- Alphabetic
- By Inheritance
- MathExpr
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- case class AP(ap: T) extends AdjectivalPhrase with Product with Serializable
Adjectival phrase as a singl tree - usually just an adjective
- type AdjectivalPhrase = MathExpr
Abstract adjectival phrase
- case class AreAdj(coProperty: AdjectivalPhrase) extends VerbPhrase with Product with Serializable
are ...
are ... property given by a transitive adjective, e.e., independent.
- case class ConjSP(sentences: Vector[SententialPhrase]) extends SententialPhrase with Product with Serializable
Conjunction of sentential phrases.
- case class ConjunctNP(nps: Vector[NounPhrase]) extends NounPhrase with Product with Serializable
A noun phrase that is a conjuction (and) of noun phrases.
- case class ConjunctSP(sps: Vector[SententialPhrase]) extends SententialPhrase with Product with Serializable
A conjunction of sentential phrases forming a sentential phrase.
- case class Core(optNoun: Option[NounPhrase], quantterms: Vector[QuantTerm] = Vector()) extends MathExpr with Product with Serializable
The core of a determiner phrase, which is a noun, a list of quant-terms or a noun followed by a list of quant-terms
- case class DP(det: Determiner, adjectives: Vector[AdjectivalPhrase] = Vector(), optNoun: Option[NounPhrase] = None, quantTerms: Option[NounPhrase] = None, post: Vector[PostModifier] = Vector()) extends MathExpr with Product with Serializable
Determiner phrase: this is the main composite tree.
- type Determiner = MathExpr
Determiner - this is a closed class.
- case class DisjSP(sentences: Vector[SententialPhrase]) extends SententialPhrase with Product with Serializable
Disjunction of sentential phrases.
- case class DisjunctNP(nps: Vector[NounPhrase]) extends NounPhrase with Product with Serializable
A noun phrase that is a disjunction (or) of noun phrases.
- case class DisjunctSP(sps: Vector[SententialPhrase]) extends SententialPhrase with Product with Serializable
A disjunction of sentential phrases forming a sentential phrase.
- case class ExistentialSP(sentence: SententialPhrase, exists: Boolean = true, unique: Boolean = false) extends SententialPhrase with Product with Serializable
Existential-style quantified sentence, but also allowing at most one and precisely one.
- case class ForAllSP(sentence: SententialPhrase) extends SententialPhrase with Product with Serializable
Universally quantified sentence.
- case class Formula(text: String) extends NounPhrase with Product with Serializable
- case class IfThen(premise: SententialPhrase, consequence: SententialPhrase) extends SententialPhrase with Product with Serializable
An if_then_ sentential phrase, translating to implies.
- case class Iff(premise: SententialPhrase, consequence: SententialPhrase) extends SententialPhrase with Product with Serializable
A bi-implication, kept separate from two implications for definitions etc
- case class IsAdj(coProperty: AdjectivalPhrase) extends VerbPhrase with Product with Serializable
is ...
is ... property given by an intransitive adjective.
- case class IsAdjPrep(adj: AdjectivalPhrase, pp: PP) extends VerbPhrase with Product with Serializable
is ...
is ... prep ... property given by a transitive adjective
- case class IsNoun(property: NounPhrase) extends VerbPhrase with Product with Serializable
is ...
is ... property given by a noun.
- case class IsPrep(pp: PP) extends VerbPhrase with Product with Serializable
is ...
is ... property given by a prespositional phrase
- case class IsSuchThat(st: SuchThat) extends VerbPhrase with Product with Serializable
is such that ...
is such that ... property
- case class It(coref: Option[MathExpr]) extends MathExpr with Product with Serializable
Pronoun 'it' with an optional coreference
- case class JJ(word: String) extends AdjectivalPhrase with Product with Serializable
- case class JJPP(adj: MathExpr, pps: Vector[MathExpr]) extends AdjectivalPhrase with Product with Serializable
- case class NN(word: String) extends NounPhrase with Product with Serializable
- case class NP(npv: Vector[MathExpr]) extends NounPhrase with Product with Serializable
A Noun phrase as a single tree.
- case class NPVP(np: NounPhrase, vp: VerbPhrase) extends SententialPhrase with Product with Serializable
A NP-VP decomposed sentential phrase
- case class NegSP(sentence: SententialPhrase) extends SententialPhrase with Product with Serializable
Negation of a sentence.
- case class NegVP(vp: VerbPhrase) extends VerbPhrase with Product with Serializable
Negated verb phrase
- type NounPhrase = MathExpr
Abstract Noun phrase
- case class PP(negated: Boolean = false, prep: Preposition, np: NounPhrase) extends PostModifier with Product with Serializable
Prepositional phrase, usually translates to an argument, sometimes to a property.
Prepositional phrase, usually translates to an argument, sometimes to a property. Can be a Post-modifier in a determiner phrase, where it acts as an argument.
- type PostModifier = MathExpr
Post-modifier in a determiner phrase.
- case class Prep(word: String) extends Preposition with Product with Serializable
A generic preposition
- type Preposition = MathExpr
Preposition - this is a closed class.
- type QuantTerm = MathExpr
A quantterm (in the Naproche sense) - a variable or something more complex such as
n_k
.A quantterm (in the Naproche sense) - a variable or something more complex such as
n_k
. Unlike Naproche, we may also have pronouns. - case class SP(spv: Vector[MathExpr]) extends SententialPhrase with Product with Serializable
A single tree for a sentential phrase
- type SententialPhrase = MathExpr
An abstract sentential phrase, representing a term.
- case class SuchThat(condition: MathExpr) extends PostModifier with Product with Serializable
A such that clause
- type T = Tree
- case class ThatIsSP(sentences: Vector[SententialPhrase]) extends SententialPhrase with Product with Serializable
Sentential phrases connected by "i.e., " or "so, ".
- case class They(corefs: Vector[MathExpr]) extends MathExpr with Product with Serializable
Pronoun 'they' with (psoosibly empty) coreferences
- case class VB(word: String) extends VerbPhrase with Product with Serializable
- case class VP(vpv: Vector[MathExpr]) extends VerbPhrase with Product with Serializable
A Verb phrase as a single tree
- case class VPIf(vp: VerbPhrase, ifc: MathExpr) extends MathExpr with Product with Serializable
to take care of an idiosyncracy of the StanfordParser, with 'if' SP attached to a VP in an NPVP
- case class Variable(variable: T) extends QuantTerm with Product with Serializable
A variable, the simplest form of QuantTerm
- case class VerbAdj(vp: VerbPhrase, ap: AdjectivalPhrase) extends VerbPhrase with Product with Serializable
A transitive verb and adjective.
- case class VerbObj(vp: VerbPhrase, obj: NounPhrase) extends VerbPhrase with Product with Serializable
A verb phrase formed by a transitive verb applied to its object.
- case class VerbPP(verb: MathExpr, pps: Vector[MathExpr]) extends VerbPhrase with Product with Serializable
- type VerbPhrase = MathExpr
Abstract verb phrase
- case class Which(condition: MathExpr) extends PostModifier with Product with Serializable
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- implicit def rw: upickle.default.ReadWriter[MathExpr]
- implicit def rwT: upickle.default.ReadWriter[T]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- val tq: String
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- object AP extends Serializable
- object AreAdj extends Serializable
- object ConjSP extends Serializable
- object ConjunctNP extends Serializable
- object ConjunctSP extends Serializable
- object Core extends Serializable
- object DP extends Serializable
- object Determiner
- object DisjSP extends Serializable
- object DisjunctNP extends Serializable
- object DisjunctSP extends Serializable
- object ExistentialSP extends Serializable
- case object Exists extends MathExpr with Product with Serializable
representing existential 'there', purely as a parsing target
- object ForAllSP extends Serializable
- object Formula extends Serializable
- object IfThen extends Serializable
- object Iff extends Serializable
- object IsAdj extends Serializable
- object IsAdjPrep extends Serializable
- object IsNoun extends Serializable
- object IsPrep extends Serializable
- object IsSuchThat extends Serializable
- object It extends Serializable
- object JJ extends Serializable
- object JJPP extends Serializable
- object NN extends Serializable
- object NP extends Serializable
- object NPVP extends Serializable
- object NegSP extends Serializable
- object NegVP extends Serializable
- object PP extends Serializable
- object Prep extends Serializable
- object Preposition
Various prepositions
- object SP extends Serializable
- object SuchThat extends Serializable
- object ThatIsSP extends Serializable
- object They extends Serializable
- object VB extends Serializable
- object VP extends Serializable
- object VPIf extends Serializable
- object Variable extends Serializable
- object VerbAdj extends Serializable
- object VerbObj extends Serializable
- object VerbPP extends Serializable
- object Which extends Serializable
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated