A parser and renderer for spintax formatted text
Other
Switch branches/tags
Nothing to show
Latest commit 56f52d1 Jul 7, 2017 @daleevans committed on GitHub Merge pull request #3 from samcv/SPDX-license
Use SPDX identifier in license field of META.info
Permalink
Failed to load latest commit information.
lib/Text fiddling with Pod Jan 9, 2016
t
.gitignore ignore perl6 .precomp dir Jan 9, 2016
LICENSE initial commit Jan 9, 2016
META.info Use SPDX identifier in license field of META.info Apr 28, 2017
README.md markdown README generated by Pod::To::Markdown Jan 9, 2016

README.md

NAME

Text::Spintax

SYNOPSIS

A parser and renderer for spintax formatted text.

use Text::Spintax;

my $node = Text::Spintax.new.parse('This {is|was|will be} some {varied|random} text');
my $text = $node.render;

DESCRIPTION

Text::Spintax implements a parser and renderer for spintax formatted text. Spintax is a commonly used method for generating "randomized" text. For example,

This {is|was} a test

would be rendered as

* This is a test
* This was a test

Spintax can be nested indefinitely, for example:

This is nested {{very|quite} deeply|deep}.

would be rendered as

* This is nested very deeply.
* This is nested quite deeply.
* This is nested deep.

AUTHOR

Dale Evans, <daleevans@github> http://devans.mycanadapayday.com

BUGS

Please report any bugs or feature requests at https://github.com/daleevans/perl6-Text-Spintax/issues

SUPPORT

You can find documentation for this module with the p6doc command.

p6doc Text::Spintax

class Text::Spintax::Spintax

a parser and renderer for spintax formatted text built using Perl6 grammar