scrabble_word_checker 0.0.8 scrabble_word_checker: ^0.0.8 copied to clipboard
The Scrabble ODS Word Checker is a Flutter package that allows you to check if a word is in the Official Scrabble Dictionary (ODS).
Scrabble Word Checker #
Description #
The Scrabble ODS Word Checker is a Flutter package that allows you to check if a word is in the Official Scrabble Dictionary (ODS). The package is easy to use and can be integrated into your Flutter app in minutes.
To use the package, simply import it into your project and call the isValidWord()
method. The method takes a word as a parameter and returns a boolean value indicating whether the word is in the ODS.
Installation #
Add the dependency to your pubspec.yaml
file.
dependencies:
scrabble_word_checker: ^0.0.4
Get dependencies
$ flutter pub get
Supported languages #
- French
- English
Usage #
To use this package, first import in anywhere in your code
import 'package:scrabble_word_checker/scrabble_word_checker.dart';
Initialise the word checker class
final ScrabbleWordChecker wordChecker = ScrabbleWordChecker(language: ScrabbleLanguage.english);
Check for any word
bool isCorrect1 = wordChecker.isValidWord("aa"); // Expected: true
bool isCorrect2 = wordChecker.isValidWord("a"); // Expected: false
Get word value
int value = wordChecker.getWordValue("black"); // Expected: 13
Change language
wordChecker.changeLanguage(ScrabbleLanguage.french)
Licence #
Scrabble Word Checker is open source and licenced under Apache 2.0. You're free to use it for personal purpose, you can also contribute by adding amazing futures.😊