Changes
Fixes
fix: Try non-English suffix endings on word breaks (#6066)
fix: Try non-English suffix endings on word breaks (#6066)
Related to #6065.
When breaking a camel case word into its parts there are two word break patterns:
regExpCamelCaseWordBreaks
regExpCamelCaseWordBreaksWithEnglishSuffix
is the default pattern.
It is the same asregExpCamelCaseWordBreaks
, but will not split ALL CAPS words with English suffixes.
Using just regExpCamelCaseWordBreaks
misses unknown 4-letter words.
The code below was tried, but it missed flagging words like LSTMs
:
LSTM
was caught.LSTMs
was missed because it becomesLST
andMs
.
const results = _checkCamelCaseWord(vr, regExpCamelCaseWordBreaks);
if (!results.length) return results;
const resultsEnglishBreaks = _checkCamelCaseWord(vr, regExpCamelCaseWordBreaksWithEnglishSuffix);
return results.length < resultsEnglishBreaks.length ? results : resultsEnglishBreaks;
- Make sure the API doesn't change when adding functions to
text.ts
. - Fix possible accent issue with wordSplitter (note, not an issue with Normalized strings).
Dictionary Updates
fix: Workflow Bot -- Update Dictionaries (main) (#6070)
fix: Workflow Bot -- Update Dictionaries (main) (#6070)
Update Dictionaries (main)
Summary
packages/cspell-bundled-dicts/package.json | 2 +-
pnpm-lock.yaml | 10 +++++-----
2 files changed, 6 insertions(+), 6 deletions(-)