-
-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Enable support to dictionary alphabet and accents. (#2355)
This feature improves the suggestions shown by the spell checker. It allows dictionary authors to specify character sequences that should be considered similar. When defining a dictionary it is now possible rank certain suggestions higher or lower by adding edit costs to the new section `dictionaryInformation`. * refactor and adjust suggestion weights * pull pipe library into trie lib for now - At some point this will get split out into its own library, but for now it is useful to have in trie-lib. * refactor `mapDictionaryInfo` * Make pipe coverage 100% * Add initial pass at alphabet and accents * refactor: rename pipe operators * refactor mapDictionaryInfo * Support `v is T` on filters. * Reduce duplicate code * Make progress with accent replacement. * Add default support for accents. * Create WeightMap when a dictionary is created. * Increase the default cost - Make sure letters not in the alphabet are more expensive. * Update api.d.ts
- Loading branch information
Showing
65 changed files
with
2,538 additions
and
675 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
import * as pipe from './pipe'; | ||
export * from './lib'; | ||
|
||
export const _pipe = pipe; |
Oops, something went wrong.