Skip to content

Commit

Permalink
[pt] Simplify PortugueseProclisisFilter logic
Browse files Browse the repository at this point in the history
  • Loading branch information
p-goulart committed Apr 17, 2024
1 parent cc73a5a commit 42e0f0b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public RuleMatch acceptRuleMatch(RuleMatch match, Map<String, String> arguments,
HashSet<String> suggestions = new HashSet<>(Collections.emptyList());
for (AnalyzedToken at : encliticVerbTokenReadings.getReadings()) {
String posTag = at.getPOSTag();
if (posTag == null || (!posTag.startsWith("V") && !posTag.contains(":"))) {
if (posTag == null || !posTag.startsWith("V") || !posTag.contains(":")) {
continue;
}
String oldToken = at.getToken();
Expand Down

0 comments on commit 42e0f0b

Please sign in to comment.