spell_check_on_client 0.0.1 copy "spell_check_on_client: ^0.0.1" to clipboard
spell_check_on_client: ^0.0.1 copied to clipboard

outdated

Spell check on flutter on client side

Context #

Spell check is something that tends to be done in server side, but it actually don't need to be like that.

With an extra 1.5Mb of words in a text file you will be able to deliver a spell check with below 200ms response time and save cloud costs.

How this package works #

This package uses an hashset comparison algorithm to deliver a spell check that can work offline in the client side

Features #

  • Tokenize a string with multiple words into single word tokens
  • Let the programmer configure what are the words so it can work in a multi language way
  • Find words in your text that are not in the dictionary
  • apply operations to find what are the possible words similar enough that belong to the dictionary
  • operations supported to find words: addition, deletion, swap, replace

Future features #

Getting started #

Add the dependency to your pubspec.yaml:

spell_check_on_client: ^0.0.1

Usage #

To use this package you will need to add the list of words as an asset inside your app https://github.com/ivofernandes/spell_check_on_client/tree/master/example/assets

If it looks to hard to use you can always start your app by forking this example app: https://github.com/ivofernandes/spell_check_on_client/blob/master/example/lib/main.dart

Like us on pub.dev #

Package url: https://pub.dev/packages/spell_check_on_client

Instruction to publish the package to pub.dev #

dart pub publish