Skip to content

Commit

Permalink
simplify english grammar (#1176)
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanVukovic99 authored Jul 6, 2024
1 parent 22d5928 commit 813fde3
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions ext/js/language/en/english-transforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function createPhrasalVerbInflection(inflected, deinflected) {
deinflect: (term) => {
return term.replace(new RegExp(`(?<=)${inflected}(?= (?:${phrasalVerbWordDisjunction}))`), deinflected);
},
conditionsIn: ['v_phr'],
conditionsIn: ['v'],
conditionsOut: ['v_phr'],
};
}
Expand All @@ -109,18 +109,10 @@ function createPhrasalVerbInflectionsFromSuffixInflections(sourceRules) {
export const englishTransforms = {
language: 'en',
conditions: {
v_any: {
name: 'Verb',
isDictionaryForm: false,
subConditions: ['v', 'v_irr', 'v_phr'],
},
v: {
name: 'Regular verb',
isDictionaryForm: true,
},
v_irr: {
name: 'Irregular verb',
name: 'Verb',
isDictionaryForm: true,
subConditions: ['v_phr'],
},
v_phr: {
name: 'Phrasal verb',
Expand Down

0 comments on commit 813fde3

Please sign in to comment.