mirror of
https://github.com/Automattic/harper.git
synced 2025-12-05 19:26:55 -06:00
fix: flag "piece of advise" (#2266)
This commit is contained in:
@@ -1361,4 +1361,13 @@ mod tests {
|
||||
NounVerbConfusion::default(),
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn issue_2041() {
|
||||
assert_suggestion_result(
|
||||
"Let me give you a piece of advise.",
|
||||
NounVerbConfusion::default(),
|
||||
"Let me give you a piece of advice.",
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ impl Default for VerbInsteadOfNoun {
|
||||
Self {
|
||||
expr: Box::new(
|
||||
SequenceExpr::default()
|
||||
.then(UPOSSet::new(&[UPOS::ADJ]))
|
||||
.then(UPOSSet::new(&[UPOS::ADJ, UPOS::ADP]))
|
||||
.then_whitespace()
|
||||
.then(verbs.clone()),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user