hunspell-reader
Advanced tools
Comparing version 7.0.1-alpha.6 to 7.0.1-alpha.7
@@ -70,6 +70,4 @@ import * as GS from 'gensequence'; | ||
const r = affixRules | ||
.map((affix) => this.applyAffixToWord(affix, affWord, combinableSfx)) | ||
.reduce((a, b) => a.concat(b), []) | ||
.map((affWord) => this.applyRulesToWord(affWord, remainingDepth - 1)) | ||
.reduce((a, b) => a.concat(b), []); | ||
.flatMap((affix) => this.applyAffixToWord(affix, affWord, combinableSfx)) | ||
.flatMap((affWord) => this.applyRulesToWord(affWord, remainingDepth - 1)); | ||
return r; | ||
@@ -84,4 +82,3 @@ } | ||
return matchingSubstitutions | ||
.map((sub) => sub.substitutions) | ||
.reduce((a, b) => a.concat(b), []) | ||
.flatMap((sub) => sub.substitutions) | ||
.filter((sub) => sub.remove === '0' || sub.replace.test(word)) | ||
@@ -88,0 +85,0 @@ .map((sub) => this.substitute(affix, partialAffWord, sub)) |
{ | ||
"name": "hunspell-reader", | ||
"version": "7.0.1-alpha.6", | ||
"version": "7.0.1-alpha.7", | ||
"description": "A library for reading Hunspell Dictionary Files", | ||
@@ -47,4 +47,4 @@ "bin": "bin.js", | ||
"dependencies": { | ||
"@cspell/cspell-pipe": "^7.0.1-alpha.6", | ||
"@cspell/cspell-types": "^7.0.1-alpha.6", | ||
"@cspell/cspell-pipe": "^7.0.1-alpha.7", | ||
"@cspell/cspell-types": "^7.0.1-alpha.7", | ||
"commander": "^10.0.1", | ||
@@ -57,3 +57,3 @@ "gensequence": "^5.0.2", | ||
}, | ||
"gitHead": "42a31c7216a9af068ae4b7c3921f8edd327f756f" | ||
"gitHead": "719c2f9f55c79d35074f8493a37de6f40077325d" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
67334
1706