# chatl

> Simple DSL to generate training file for NLU engines

Latest version **2.0.1** (published 2020-02-24) · GPLv3 license · 0 weekly downloads

## Install

```sh
npm install chatl
pnpm add chatl
yarn add chatl
bun add chatl
```

Provides the command `chatl`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2020-02-24 |
| First published | 2018-08-13 |
| Weekly downloads | 0 |
| License | GPLv3 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 213.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10 |
| Author | Julien LEICHER |
| Maintainers | yuukan |

## Links

- npm: https://www.npmjs.com/package/chatl
- Repository: https://github.com/atlassistant/chatl
- Homepage: https://github.com/atlassistant/chatl#readme
- Issues: https://github.com/atlassistant/chatl/issues
- npm.io page: https://npm.io/package/chatl

## Dependencies (1)

- [commander](https://npm.io/package/commander.md) ^2.17.1

## Recent versions

- 2.0.1 (latest) — 2020-02-24
- 2.0.0 — 2019-07-31
- 1.2.7 — 2019-02-05
- 1.2.6 — 2019-01-06
- 1.2.0 — 2018-08-30
- 1.1.1 — 2018-08-23
- 1.1.0 — 2018-08-20
- 1.0.7 — 2018-08-17
- 1.0.6 — 2018-08-17
- 1.0.5 — 2018-08-16
- 1.0.5-q — 2018-08-16
- 1.0.4 — 2018-08-14
- 1.0.3 — 2018-08-14
- 1.0.2 — 2018-08-14
- 1.0.1 — 2018-08-13
- … 1 more at https://npm.io/package/chatl/versions

## README

chatl: javascript flavor
===

## Installation

```console
$ npm install -g chatl
```

## Usage

### CLI

```console
Usage: chatl [options] <files...>

  Options:

    -V, --version           output the version number
    -a, --adapter <name>    Name of the adapter to use
    -m --merge <mergeFile>  Options file to merge with the final result
    -h, --help              output usage information
```

### Library

You can use it with `node` or directly in client libraries with `webpack`.

```javascript
import chatl from 'chatl';

// Parsing the given dsl to a chatl representation

const result = chatl.parse(`
%[get_forecast]
  will it rain in @[city] @[dateStart]

~[new york]
  ny
  nyc

@[dateStart](type=snips/datetime)
  at the end of the day
  tomorrow
  today

@[city]
  ~[new york]
  paris`);

// And convert it to the snips equivalent using the adapter
chatl.adapters.snips(result);
```

## Testing

```console
$ npm i
$ npm test # or `npm run wintest` on windows
```

---
_Source: https://npm.io/package/chatl · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
