word_generator

Creator: coderz1093

Last updated:

Add to Cart

Description:

word generator

Word Generator #



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.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.