Class SyntaxTools
java.lang.Object
org.episteme.social.linguistics.loaders.tigerxml.tools.SyntaxTools
Provides methods that define a number of higher-level linguistic concepts.
Included are "subject", and "voice". This class is for
static use.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongeneralizePreposition(String prep) Generalizes a preposition.Returns the nearest dominating clausal node of this GraphNode.Returns the nearest dominating nominal node of this GraphNode.getHeadWord(GraphNode node) Returns the head word of the constituent.getLeftmostConstituent(GraphNode verbal_node) Returns the leftmost constituent of the Mittelfeld that belongs to the verbal node.getPpSignature(GraphNode node) Returns the PP signature of the clause or NP the node belongs to.Returns the preposition of a PPgetSubject(GraphNode node) Returns the subject of the sentence the node belongs to.booleanhasActiveVoice(T verbal_node) Returns true if the input node is a full verb node and occurs in an active clause.booleanhaveSameArgumentDomain(GraphNode verbal_node, GraphNode other_node) Returns true if the verbal node has the same argument domain as the other node.static booleanisApposition(GraphNode node) protected static booleanisAttributiveMarkablePronoun(T terminal) static booleanstatic booleanisNpLikeNode(NT node) Defines the term NP as it is commonly understood in terms of TIGER syntax.static booleanstatic booleanisSLikeNode(NT node) Defines the term S as it is commonly understood in terms of TIGER syntax.protected static booleanisSubstitutingMarkablePronoun(T terminal) static booleanisVpLikeNode(NT node) Defines the term VP as it is commonly understood in terms of TIGER syntax.booleanReturns true if the nearest dominating clausal node is nearer than the nearest dominating nominal node.
-
Constructor Details
-
SyntaxTools
public SyntaxTools()
-
-
Method Details
-
getPreposition
-
generalizePreposition
-
getPpSignature
-
isNpLikeNode
Defines the term NP as it is commonly understood in terms of TIGER syntax. -
getLeftmostConstituent
-
getHeadWord
-
isSLikeNode
Defines the term S as it is commonly understood in terms of TIGER syntax. -
isVpLikeNode
Defines the term VP as it is commonly understood in terms of TIGER syntax. -
getDominatingClausalNode
-
getDominatingNominalNode
-
occursInNominalContext
Returns true if the nearest dominating clausal node is nearer than the nearest dominating nominal node. -
haveSameArgumentDomain
-
hasActiveVoice
Returns true if the input node is a full verb node and occurs in an active clause. -
getSubject
-
isSubstitutingMarkablePronoun
-
isPronoun
-
isAttributiveMarkablePronoun
-
isNoun
-
isApposition
-