fluttering_phrases 0.1.0
fluttering_phrases: ^0.1.0 copied to clipboard

Dart native js
Flutter Android iOS web

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

fluttering_phrases #

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 :)

This project has not yet had a final release, therefore the API may experience small breakages.

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.

1
likes
110
pub points
35%
popularity

Publisher

parlough.dev

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on fluttering_phrases