Tags:
create new tag
view all tags
---+Grammar Engineering Frequently Asked Questions ---++How do I constrain something to be not of a certain value? The tdl formalism does not include any explicit negation operator. However, in most cases, you can use the logic of the type hierarchy to encode negative constraints. For example, suppose your language has three cases, nominative, accusative, and dative, and that you want to constrain the value of CASE on some type to be not dative. Within this closed system, not dative is the same as nominative or accusative. Therefore, it suffices to define an intermediate supertype for nominative and accusative, which excludes dative: <verbatim> case := *top*. dat := case. nom+acc := case. nom := nom+acc. acc := nom+acc. </verbatim> Given this hierarchy, "The case is not dative" (equivalently, "The case is nominative or accusative") can be expressed thus: <verbatim> [ CASE nom+acc ]. </verbatim> --- [[GrammarEngineeringFAQ][Back to FAQs page]] [[http://courses.washington.edu/ling471/][Back to main course page]] -- EmilyBender - 02 Nov 2004
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r3 - 2006-04-30
-
JonahCohen
Home
Site map
Main web
Sandbox web
TWiki web
Main Web
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
E
dit
A
ttach
Copyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback