List Major English Words
This package is a dictionary of English words that includes the Major System number and definition for each word.
Getting started
- Update 'pubspec.yaml' 'dependencies' to include:
list_major_english_words: ^1.0.0
- Then import into your
your.dart
file like so:
import 'package:list_major_english_words/list_major_english_words.dart';
Usage
To use, declare a variable. Then access an element, and get it's major number and definition:
//GET WORDS
List<Map<String, List<String>>> dicWords = list_major_english_words;
//GET A WORD OBJECT:
Map<String, List<String>> dicObj = dicWords[0];
//GET FIRST OBJECT KEY:
String word = dicObj.keys.toList().first;
//GET MAJOR NUMNBER:
String majorNumber = dicObj[word]?[0];
//GET MAJOR DEFINITION:
String definition = dicObj[word]?[1];
Libraries
- list_major_english_words
- Support for doing something awesome.