fluttering_phrases 0.3.2 icon indicating copy to clipboard operation
fluttering_phrases: ^0.3.2 copied to clipboard

Generate random noun phrases with an optional token to spice up names in your application.

Generate random noun phrases with an optional token to spice up names in your application.

The library uses a predefined set of attributives and nouns, with some dart-related terms thrown in, but you can manually include some extra terms when generating a string.

Feel free to open a pull request to add new attributives and/or nouns or remove ill-fitting ones :)

Usage #

A simple usage example:

import 'package:fluttering_phrases/fluttering_phrases.dart';

void main() {
  const attributives = ['awesome', 'super', 'duper', ...defaultAttributives];
  const nouns = ['parlough', 'example', 'sdk', ...defaultNouns];

  final generatedTitle = generate(
      delimiter: ' | ',
      tokenRadix: 16,
      attributives: attributives,
      nouns: nouns);

  print(generatedTitle);
}

Refer to the generate() method documentation and the tests for more information.

Feature Requests and Issues #

I'm heavily open to feedback, so let me know of any features you'd like to see or of any issues you have on the issue tracker on Github.

2
likes
140
pub points
68%
popularity

Publisher

verified publisher iconparlough.dev

Generate random noun phrases with an optional token to spice up names in your application.

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

More

Packages that depend on fluttering_phrases