Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dmlls committed Oct 13, 2024
1 parent 8f6c521 commit 4be9ef1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
("I'll be excited.", "I will not be excited.", False),
("I will be excited.", "I won't be excited.", True),
("I will be excited.", "I will not be excited.", False),
("She's determined.", "She isn't determined.", True),
("She's determined.", "She is not determined.", False),
("She's excited.", "She isn't excited.", True),
("She's excited.", "She is not excited.", False),
("She is excited.", "She isn't excited.", True),
Expand Down Expand Up @@ -175,6 +173,7 @@
("I shouldn't do it.", "I should do it.", False),
("I should not do it.", "I should do it.", True),
("I should not do it.", "I should do it.", False),
("You ought not to do it.", "You ought to do it.", False),
("I can't do it.", "I can do it.", True),
("I can't do it.", "I can do it.", False),
("I cannot do it.", "I can do it.", True),
Expand Down Expand Up @@ -244,8 +243,6 @@
("I used to love hiking.", "I did not use to love hiking.", False),
("I really liked the food.", "I really didn't like the food.", True),
("I really liked the food.", "I really did not like the food.", False),
("A small Python module negating sentences.", "A small Python module not negating sentences.", False),
("A small Python module negating sentences.", "A small Python module not negating sentences.", True),
("A small Python module to negate sentences.", "A small Python module to not negate sentences.", False),
("A small Python module to negate sentences.", "A small Python module to not negate sentences.", True)
]
Expand Down Expand Up @@ -403,14 +400,18 @@
("I do.", "I do not.", False), # "do" classified as VERB instead of AUX.
("She does.", "She doesn't.", True), # "do" classified as VERB instead of AUX.
("She does.", "She does not.", False), # "do" classified as VERB instead of AUX.
("A small Python module negating sentences.", "A small Python module not negating sentences.", False),
("A small Python module negating sentences.", "A small Python module not negating sentences.", True),
# Connectors.
("It also prohibits or restricts the use of certain mechanisms.", "It also doesn't prohibit or restrict the use of certain mechanisms.", True),
# Boolean logic, e.g.: "prohibits AND restricts" -> "doesn't prohibit OR restrict"
("It also prohibits and restricts the use of certain mechanisms.", "It also doesn't prohibit or restrict the use of certain mechanisms.", True),
# Non-verbal negations.
("A piece with no moving parts.", "A piece with moving parts.", False), # No verb to negate.
# Special case of negated ought not yet implemented.
("You ought not to do it.", "You ought to do it.", False),
("You ought to do it.", "You oughtn't do it.", True),
("You oughtn't do it.", "You ought to do it.", True),
# Ambiguous.
("She's determined.", "She isn't determined.", True),
("She's determined.", "She is not determined.", False),
]

0 comments on commit 4be9ef1

Please sign in to comment.