<commit_before># Lazy,

![](https://cagatay.js.org/lazy.png)

## AI telegram chat bot.

[Create telegram bot.](https://core.telegram.org/bots#6-botfather)

[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/cagataycali/lazy)

# Programmatic Usage
```javascript
var Lazy = require('lazy.ai');

async function start() {
  var lazy = new Lazy();
  // Learn ..
  console.log(await lazy.learn({phrase: 'hello', category: 'greetings'}));
  console.log(await lazy.learn({phrase: 'hi', category: 'greetings'}));
  console.log(await lazy.learn({phrase: 'Hello there!', category: 'greetings'}));
  // Result ..
  console.log(await lazy.query({phrase: "hello dude!"}));
  // Helpers..
  console.log(await lazy.addResponse({category: 'greetings', response: 'Hi there!'}));
  console.log(await lazy.getResponses({category: 'greetings'}));
  console.log(await lazy.getCategories());
}
// Dont forget start your function :)
start();
```

## Telegram Bot Usage

<details>
### Learn something..

```
/learn hi - greeting
```

### Add some greeting message..

```
/add greeting - Hello there!
/add greeting - Hello buddy!
```

### Show categories

```
/categories
```

### Show responses<commit_msg>✨  Readme updated<commit_after># Lazy,

![](https://cagatay.js.org/lazy.png)

## AI telegram chat bot.

[Create telegram bot.](https://core.telegram.org/bots#6-botfather)

[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/cagataycali/lazy)

# Programmatic Usage
```javascript
var Lazy = require('lazy.ai');

async function start() {
  var lazy = new Lazy();
  // Learn ..
  console.log(await lazy.learn({phrase: 'hello', category: 'greetings'}));
  console.log(await lazy.learn({phrase: 'hi', category: 'greetings'}));
  console.log(await lazy.learn({phrase: 'Hello there!', category: 'greetings'}));
  // Result ..
  console.log(await lazy.query({phrase: "hello dude!"}));
  // Helpers..
  console.log(await lazy.addResponse({category: 'greetings', response: 'Hi there!'}));
  console.log(await lazy.getResponses({category: 'greetings'}));
  console.log(await lazy.getCategories());
}
// Dont forget start your function :)
start();
```

## Telegram Bot Usage

<details>

### Learn something..

```
/learn hi - greeting
```

### Add some greeting message..

```
/add greeting - Hello there!
/add greeting - Hello buddy!
```

### Show categories

```
/categories
```

### Show responses
{'fraction_non_alphanumeric': 0.20064334539605952, 'fraction_numerical': 0.0008041817450743868, 'mean_word_length': 4.516629711751663, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 10, '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': '1478805', 'n_tokens_mistral': 874, 'n_tokens_neox': 857, 'n_words': 181}