Skip to content
pubscout

spell_check_on_client

1.0.1, released 8 months ago by turingdeal.com

Client-side offline spell checking for multiple languages using local dictionary files.

WASM-ready
$ flutter pub add spell_check_on_client
Source repository

What it does

Performs offline spell checks directly on the client using a hash-set comparison algorithm and local dictionary assets. It tokenizes strings, identifies words missing from the dictionary, and suggests similar words through operations like addition, deletion, swap, and replacement.

AI-written summary of version 1.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need offline spell checking to save cloud costs and reduce latency.
  • Your application supports multiple languages and uses local dictionary assets.

Skip it when

  • You require real-time cloud-based dictionary synchronization or complex grammar checking.

Strengths

  • Works fully offline on the client side with fast response times.
  • Supports multiple languages via downloadable word list assets.
  • Provides word correction suggestions using multiple string operations.

Weaknesses

  • Requires bundling dictionary text file assets inside your application.
  • Limited to spell checking and basic word suggestions rather than full grammar checking.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0

Add the package dependency and include the desired language word text files as assets in your application.

void initSpellCheck() async {
  const language = 'en';
  final content = await rootBundle.loadString('assets/${language}_words.txt');
  spellCheck = SpellCheck.fromWordsContent(
    content,
    letters: LanguageLetters.getLanguageForLanguage(language),
  );
}

Alternatives

Packages that do the same job and could replace spell_check_on_client.

  • select2dot1

    Customizable single/multiple select box with search, groups, extra info, and avatars.