grunt-ask-analyze

0.1.5 • Public • Published

grunt-ask-analyze

A grunt task that validates an Alexa Skills Kit interaction model. It currently implements these validations:

  1. not more than 250 intents
  2. all intents in the intent schema have sample utterances
  3. all sample utterances have an intent in the intent schema
  4. no sample utterance is repeated in 2 different intents

Using it

First, load it in your Gruntfile:

grunt.loadNpmTasks('grunt-ask-analyze');

Next, configure it:

    ask_validate: {
      default: {
        schema: 'dist/intents.json',
        utterances: 'model/samples.txt'
      }
    }

Finally, use it as part of some other task, like your default task:

grunt.registerTask('default', ['ask_validate']);

Package Sidebar

Install

npm i grunt-ask-analyze

Weekly Downloads

1

Version

0.1.5

License

Apache-2.0

Last publish

Collaborators

  • ashuntwo