word_generator 0.4.6 copy "word_generator: ^0.4.6" to clipboard
word_generator: ^0.4.6 copied to clipboard

A dart based util package for generating random nouns, verbs, names, strong password and validate the given password is strong or not.

Word Generator #

pub package License: MIT

"Buy Me A Coffee"

A dart based util package for generating random nouns, verbs, names, strong password and validate the given password is strong or not. This package helps you to generate random words and passwords for your project without any hassle.

🚀 Features #

nouns #

  • randomNouns
  • randomNoun
  • randomSentence

verbs #

  • randomVerbs
  • randomVerb

names #

  • randomNames
  • nandomName

common util #

  • countSyllables

password #

  • generatePassword
  • validatePassword

🎮 Usage #

generatePassword #

Generate a random 8 digit password. If no length is provided then default length is taken as 8.

import 'package:word_generator/word_generator.dart';

main() {
   final passwordGenerator = PasswordGenerator();
   String password = passwordGenerator.generatePassword();
   print(password)
}
copied to clipboard

validatePassword #

Check the given string is strong password or not.

import 'package:word_generator/word_generator.dart';

main() {
   final passwordGenerator = PasswordGenerator();
   bool password = passwordGenerator.validatePassword('abcABC123!@#');
   print(password)
}
copied to clipboard

randomNouns #

Print 3 random nouns. Parameter is optional, if no param is provided then 2 noun will be generated.

import 'package:word_generator/word_generator.dart';

main() {
   final wordGenerator = WordGenerator();
   List<String> nouns = wordGenerator.randomNouns(3);
   print(nouns);
}
copied to clipboard

randomNoun #

Print single random noun.

import 'package:word_generator/word_generator.dart';

main() {
   final wordGenerator = WordGenerator();
   String noun = wordGenerator.randomNoun();
   print(noun);
}
copied to clipboard

randomSentence #

Print sentence with the random nouns. Parameter is optional, if no param is provided then 2 noun will be generated.

import 'package:word_generator/word_generator.dart';

main() {
   final wordGenerator = WordGenerator();
   List<String> noun = wordGenerator.randomSentence(3);
   print(noun);
}
copied to clipboard

countSyllables #

Print count of the syllables in the word

import 'package:word_generator/word_generator.dart';

main() {
   final wordGenerator = WordGenerator();
   int count = wordGenerator.countSyllables('dart');
   print(count);
}
copied to clipboard

randomVerbs #

Print 3 random verbs. Parameter is optional, if no param is provided then 2 noun will be generated.

import 'package:word_generator/word_generator.dart';

main() {
   final wordGenerator = WordGenerator();
   List<String> verbs = wordGenerator.randomVerbs(3);
   print(verbs);
}
copied to clipboard

randomVerb #

Print single random verb.

import 'package:word_generator/word_generator.dart';

main() {
   final wordGenerator = WordGenerator();
   String verb = wordGenerator.randomVerb();
   print(verb);
}
copied to clipboard

randomNames #

Print 3 random names. Parameter is optional, if no param is provided then 2 noun will be generated.

import 'package:word_generator/word_generator.dart';

main() {
   final wordGenerator = WordGenerator();
   List<String> names = wordGenerator.randomNames(3);
   print(names);
}
copied to clipboard

randomName #

Print single random name.

import 'package:word_generator/word_generator.dart';

main() {
   final wordGenerator = WordGenerator();
   String name = wordGenerator.randomName();
   print(name);
}
copied to clipboard

😅 Issue #

If you face any issues, please raise an issue.

11
likes
160
points
979
downloads

Publisher

verified publisherkathirvelchandrasekaran.com

Weekly Downloads

2024.08.05 - 2025.02.17

A dart based util package for generating random nouns, verbs, names, strong password and validate the given password is strong or not.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on word_generator