KayLerch / alexa-utterance-generator

Use this tool if you'd like to generate hundreds and thousands of variant utterances for your Alexa skills.
Apache License 2.0
83 stars 11 forks source link

Add usage info to the README #6

Closed ansman closed 6 years ago

ansman commented 6 years ago

It seems this library is not published to maven central or any other major repository which leads to the conclusion that you should clone this library and compile it yourself, is that correct?

KayLerch commented 6 years ago

Correct. I made it more clear in the updated docs that this tool is meant to use in the IDE. I would really love to provide a better interface and even integration to other projects and Maven central. Let´s see what comes next :) Thanks for the feedback anyway.

KayLerch commented 6 years ago

Hi Ansman,

I entirely refactored the code and also added new features to the generator. It is now also available in maven central: https://search.maven.org/artifact/io.klerch/alexa.utterances/2.0.0/jar

In your project, you need to initialize Generator and call generate() method. Either give it some file references to e.g. your *.grammar file or feed the generate() method with a list of strings containing the grammar specification line by line. Take https://github.com/KayLerch/alexa-utterance-generator/blob/master/src/main/java/io/klerch/alexa/utterances/UtteranceGenerator.java as a reference.

ansman commented 6 years ago

Great, nice work!