Skip to content

Commit 2d04c15

Browse files
author
dlutz2
committed
Improved verbalization of predicate relations
1 parent a1f1452 commit 2d04c15

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

resources/data/phrases.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#normal form Alternate surface forms Token Type
22

33
# ---- subtype/equivalence/inverse predicates
4-
is is a type of IS
4+
is is a type of,implies IS
55
same as the same as,also known as,equivalent to,identical to SAME_AS
66
the inverse of INVERSE_OF
77

src/org/opensextant/howler/abstraction/Vocabulary.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ public class Vocabulary {
6969

7070
/* ------- parts of predicate expressions ------- */
7171
public static final GenericWord IS_AUX = new GenericWord("is", "VB");
72+
public static final GenericWord IMPLIES = new GenericWord("implies", "VB");
7273
public static final GenericWord DOES_AUX = new GenericWord("does", "VB");
7374
public static final GenericWord HAS_AUX = new GenericWord("has", "VB");
7475
public static final GenericWord INVERSE_OF = new GenericWord("the inverse of", "ZZ");

src/org/opensextant/howler/text/ToText.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -515,15 +515,7 @@ private List<Word> convert(PredicateType type, boolean negative, boolean inverse
515515

516516
if (type.equals(PredicateType.IS)) {
517517

518-
if (wt.equals(WordType.DATA_PREDICATE)) {
519-
wrds.add(Vocabulary.IS_Data);
520-
}
521-
if (wt.equals(WordType.OBJECT_PREDICATE)) {
522-
wrds.add(Vocabulary.IS_Object);
523-
}
524-
if (wt.equals(WordType.ANNOTATION_PREDICATE)) {
525-
wrds.add(Vocabulary.IS_Annotation);
526-
}
518+
wrds.add(Vocabulary.IMPLIES);
527519

528520
if (negative) {
529521
wrds.add(Negative.NOT);

0 commit comments

Comments
 (0)