diff options
author | StefanVukovic99 <stefanvukovic44@gmail.com> | 2024-04-09 10:54:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-09 08:54:28 +0000 |
commit | 0ca56ec3bb0425b84ca15f2711478c44fabd52df (patch) | |
tree | f48680e4196307301516d34eaf567d0a985bfa9c /ext/js/language | |
parent | ae109750d7fbb20a6c4ea7c7ec2a4ec5398bfe0d (diff) |
fix deinflection on past simple of english phrasal verbs (#808)
Diffstat (limited to 'ext/js/language')
-rw-r--r-- | ext/js/language/en/english-transforms.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/js/language/en/english-transforms.js b/ext/js/language/en/english-transforms.js index 5471e216..e4c4dcc6 100644 --- a/ext/js/language/en/english-transforms.js +++ b/ext/js/language/en/english-transforms.js @@ -72,7 +72,7 @@ const phrasalVerbInterposedObjectRule = { return term.replace(new RegExp(`(?<=\\w) (?:(?!\\b(${phrasalVerbWordDisjunction})\\b).)+ (?=(?:${particlesDisjunction}))`), ' '); }, conditionsIn: [], - conditionsOut: ['v'] + conditionsOut: ['v_phr'] }; /** @@ -87,7 +87,7 @@ function createPhrasalVerbInflection(inflected, deinflected) { deinflect: (term) => { return term.replace(new RegExp(`(?<=)${inflected}(?= (?:${phrasalVerbWordDisjunction}))`), deinflected); }, - conditionsIn: [], + conditionsIn: ['v_phr'], conditionsOut: ['v_phr'] }; } |