github streetsidesoftware/cspell v8.13.3

latest releases: v8.16.0, v8.15.7, v8.15.6...
3 months ago

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 as regExpCamelCaseWordBreaks, 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 becomes LST and Ms.
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(-)

Documentation

docs: fix grammar issue. (#6064)

docs: fix grammar issue. (#6064)

fixes #6059


Don't miss a new cspell release

NewReleases is sending notifications on new releases.