Skip to content

Commit e519193

Browse files
committed
Add some tests of RBR/RBS and special cases
1 parent 74fa642 commit e519193

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/src/edu/stanford/nlp/process/MorphologyTest.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ public class MorphologyTest extends TestCase {
2626
"better", "gooier", "glummer", "tamer", "sicker",
2727
"best", "gooiest", "glummest", "tamest", "sickest",
2828
"better", "earlier", // should not change if JJ
29+
"earlier", "earliest", "more", "less", "least", // RBR / RBS special cases
30+
"quicker", "slower", "longer", "wider", "widest",
31+
"easier", "easier", // JJR & RBR
2932
};
3033

3134
private String[] exTags = { "NNS", "NNS", "VBD", "NN",
@@ -46,6 +49,9 @@ public class MorphologyTest extends TestCase {
4649
"JJR", "JJR", "JJR", "JJR", "JJR",
4750
"JJS", "JJS", "JJS", "JJS", "JJS",
4851
"JJ", "JJ",
52+
"RBR", "RBS", "RBR", "RBR", "RBS",
53+
"RBR", "RBR", "RBR", "RBR", "RBS",
54+
"JJR", "RBR",
4955
};
5056

5157
private String[] exAnswers = {"brethren", "duck", "see", "saw",
@@ -66,6 +72,9 @@ public class MorphologyTest extends TestCase {
6672
"good", "gooey", "glum", "tame", "sick",
6773
"good", "gooey", "glum", "tame", "sick",
6874
"better", "earlier",
75+
"early", "early", "more", "less", "least",
76+
"quick", "slow", "long", "wide", "wide",
77+
"easy", "easy",
6978
};
7079

7180
public void testMorph() {

0 commit comments

Comments
 (0)