Skip to content

feat: Support multiple repMap combinations - #4270

Merged
Jason3S merged 3 commits into
mainfrom
dev-rep
Mar 3, 2023
Merged

Jason3S merged 3 commits into
mainfrom
dev-rep

Conversation

@Jason3S

@Jason3S Jason3S commented Mar 3, 2023 •

Copy link
Copy Markdown
Collaborator

It is possible to define a repMap in the dictionary definition. This allows for sub-string substitutions. It use to be an ALL or nothing option.

Old behavior:

  • Goerresstraße -> Görreßtraße which won't match the correct word of Görresstraße.

New behavior:

  • Goerresstraße -> Goerresstraße, Goerreßtraße, Görresstraße, Görreßtraße

Note, this is only applied to words being checked, not words in the dictionary.

Dictionary contains:

  • Görresstraße

This also addresses these issues:

It is possible to define a `repMap` in the dictionary definition. This allows for sub-string substitutions. It use to be an ALL or nothing option.

Old behavior:
- `Goerresstraße` -> `Görreßtraße` which won't match the correct word of `Görresstraße`.

New behavior:
- `Goerresstraße` -> 'Goerresstraße', 'Goerreßtraße', 'Görresstraße', 'Görreßtraße'
@Jason3S
Jason3S marked this pull request as ready for review March 3, 2023 18:48
@Jason3S
Jason3S merged commit bbc3ed4 into main Mar 3, 2023
@Jason3S
Jason3S deleted the dev-rep branch March 3, 2023 18:48
@Jason3S Jason3S added cspell-dictionary Issues with cspell-dictionary cspell-trie-lib Issues with cspell-trie-lib labels Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cspell-dictionary Issues with cspell-dictionary cspell-trie-lib Issues with cspell-trie-lib feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant