<commit_before># alexa-app

[![NPM](https://img.shields.io/npm/v/alexa-app.svg)](https://www.npmjs.com/package/alexa-app/)
[![Build Status](https://travis-ci.org/alexa-js/alexa-app.svg?branch=master)](https://travis-ci.org/alexa-js/alexa-app)
[![Coverage Status](https://coveralls.io/repos/github/alexa-js/alexa-app/badge.svg?branch=master)](https://coveralls.io/github/alexa-js/alexa-app?branch=master)

A Node module to simplify development of Alexa apps (Skills) using Node.js.

# Installation

```bash
	npm install alexa-app --save
```

# Stable Release

You're reading the documentation for the next release of alexa-app, which should be 2.4.1. Please see [CHANGELOG](CHANGELOG.md) and make sure to read [UPGRADING](UPGRADING.md) when upgrading from a previous version. The current stable release is [2.4.0](https://github.com/alexa-js/alexa-app/blob/v2.4.0/README.md).

# Summary

The alexa-app module does the dirty work of interpretting the JSON request from the Alexa platform and building the JSON response that can be spoken on an Alexa-compatible device, such as the Echo. It provides a DSL for defining intents, convenience methods to more easily build the response, handle session objects, and add cards.

The intent schema definition and sample utterances can be included in your application's definition, making it very simple to generate hundreds (or thousands!) of sample utterances with a few lines.

# Features

- Simplified handling of requests and generating responses
- Support for asynchronous handlers
- Easy connection into AWS Lambda or Node.js Express, etc.
- Auto-generation of intent schema and sample utterances
- Convenience handling of session data
- Support for testing

# Example Usage

```javascript
var alexa = require("alexa-app");
var app = new alexa.app("sample");

app.intent("number", {
    "slots": { "number": "NUMBER" },
    "utterances": ["say the number {1-100|number}"]
  },
  function(request, response) {
    var number = request.slot("number");
    response.say("You asked for the number " + number);<commit_msg>Fix Spelling mistake <commit_after># alexa-app

[![NPM](https://img.shields.io/npm/v/alexa-app.svg)](https://www.npmjs.com/package/alexa-app/)
[![Build Status](https://travis-ci.org/alexa-js/alexa-app.svg?branch=master)](https://travis-ci.org/alexa-js/alexa-app)
[![Coverage Status](https://coveralls.io/repos/github/alexa-js/alexa-app/badge.svg?branch=master)](https://coveralls.io/github/alexa-js/alexa-app?branch=master)

A Node module to simplify development of Alexa apps (Skills) using Node.js.

# Installation

```bash
	npm install alexa-app --save
```

# Stable Release

You're reading the documentation for the next release of alexa-app, which should be 2.4.1. Please see [CHANGELOG](CHANGELOG.md) and make sure to read [UPGRADING](UPGRADING.md) when upgrading from a previous version. The current stable release is [2.4.0](https://github.com/alexa-js/alexa-app/blob/v2.4.0/README.md).

# Summary

The alexa-app module does the dirty work of interpreting the JSON request from the Alexa platform and building the JSON response that can be spoken on an Alexa-compatible device, such as the Echo. It provides a DSL for defining intents, convenience methods to more easily build the response, handle session objects, and add cards.

The intent schema definition and sample utterances can be included in your application's definition, making it very simple to generate hundreds (or thousands!) of sample utterances with a few lines.

# Features

- Simplified handling of requests and generating responses
- Support for asynchronous handlers
- Easy connection into AWS Lambda or Node.js Express, etc.
- Auto-generation of intent schema and sample utterances
- Convenience handling of session data
- Support for testing

# Example Usage

```javascript
var alexa = require("alexa-app");
var app = new alexa.app("sample");

app.intent("number", {
    "slots": { "number": "NUMBER" },
    "utterances": ["say the number {1-100|number}"]
  },
  function(request, response) {
    var number = request.slot("number");
    response.say("You asked for the number " + number);
{'fraction_non_alphanumeric': 0.11710621824340672, 'fraction_numerical': 0.0062908299056375514, 'mean_word_length': 4.541554959785523, 'pattern_counts': {'":': 6, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 14, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6450148', 'n_tokens_mistral': 1317, 'n_tokens_neox': 1234, 'n_words': 428}