Skip to content

Commit

Permalink
Fixed to support case without 'られない'
Browse files Browse the repository at this point in the history
  • Loading branch information
hirokiky committed Oct 16, 2020
1 parent b366059 commit e06a0b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void validate(Sentence sentence) {
if (ptags.get(0).equals("動詞") && ptags.get(1).equals("自立") && ptags.get(2).equals("一段") && ptags.get(3).equals("未然形")) {
final TokenElement q = tokens.get(i+1);
final List<String> qtags = q.getTags();
if (qtags.get(0).equals("動詞") && qtags.get(1).equals("接尾") && qtags.get(2).equals("一段") && qtags.get(3).equals("未然形") && q.getSurface().equals("られ")) {
if (qtags.get(0).equals("動詞") && qtags.get(1).equals("接尾") && q.getSurface().startsWith("られ")) {
} else {
addLocalizedError(sentence, p.getSurface());
}
Expand Down

0 comments on commit e06a0b7

Please sign in to comment.