@@ -4,7 +4,8 @@ const endingCharacter = "\n";
4
4
const hidingWordsFromDefinition = true ;
5
5
const blank = "______" ;
6
6
const removingDotInformation = true ; // Dot information: definitions starting with "•" symbol in dictionary.
7
- const removingComparativeAndSuperlativeInformation = true ;
7
+ const removingRegularVerbConjugationFormsInformation = true ;
8
+ const removingComparativeAndSuperlativeFormsInformation = true ;
8
9
const removingPluralFormInformation = true ;
9
10
const htmlFormatting = true ; // Italicize and change font color of example sentences.
10
11
const exampleSentencesFontColor = "darkgrey" ; // Put desired html color name here.
@@ -78,8 +79,11 @@ const pruneText = (word, text) => {
78
79
if ( removingDotInformation === true ) {
79
80
text = removeDotInformation ( text ) ;
80
81
}
81
- if ( removingComparativeAndSuperlativeInformation === true ) {
82
- text = removeComparativeAndSuperlativeInformation ( word , text ) ;
82
+ if ( removingRegularVerbConjugationFormsInformation === true ) {
83
+ text = removeRegularVerbConjugationFormsInformation ( word , text )
84
+ }
85
+ if ( removingComparativeAndSuperlativeFormsInformation === true ) {
86
+ text = removeComparativeAndSuperlativeFormsInformation ( word , text ) ;
83
87
}
84
88
if ( removingPluralFormInformation === true ) {
85
89
text = removePluralFormInformation ( word , text ) ;
@@ -121,7 +125,14 @@ const removeDotInformation = (text) => {
121
125
return text ;
122
126
}
123
127
124
- const removeComparativeAndSuperlativeInformation = ( word , text ) => {
128
+ const removeRegularVerbConjugationFormsInformation = ( word , text ) => {
129
+ const lastCharacterRemovedWord = word . substring ( 0 , word . length - 1 ) ;
130
+ const target = " (" + lastCharacterRemovedWord + "ies, " + word + "ing, " + lastCharacterRemovedWord + "ied)"
131
+ text = text . replace ( target , "" )
132
+ return text
133
+ }
134
+
135
+ const removeComparativeAndSuperlativeFormsInformation = ( word , text ) => {
125
136
const lastCharacterRemovedWord = word . substring ( 0 , word . length - 1 ) ;
126
137
const target1 = " (" + word + "r, " + word + "st)"
127
138
const target2 = " (" + word + "er, " + word + "est)"
0 commit comments