multi_language_words 1.0.0 copy "multi_language_words: ^1.0.0" to clipboard
multi_language_words: ^1.0.0 copied to clipboard

A package containing words in 10 different languages and some utility functions.

example/example.dart

import 'package:multi_language_words/multi_language_words.dart';

void main() {
  final generator = WordGenerator();

  // Generate 5 random words (defaults to English)
  final words = generator.generateRandomWords(5);
  print(words); // e.g., ["network", "turtle", "cannon", "design", "market"]

  // Generate words in a specific language
  final spanishWords = generator.generateRandomWords(3, Language.spanish);
  print(spanishWords); // e.g., ["casa", "tiempo", "vida"]

  // Get all available languages
  final languages = generator.getAvailableLanguages();
  print(languages); // [Language.english, Language.spanish, ...]

  // Get complete word list for a language
  final allJapaneseWords = generator.getAllWords(Language.japanese);
  print(allJapaneseWords); // prints all available Japanese words
}
0
likes
160
points
24
downloads

Publisher

unverified uploader

Weekly Downloads

A package containing words in 10 different languages and some utility functions.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on multi_language_words