@kuotie/core

1.0.0 • Public • Published

@kuotie/core

Core functions for Kuotie Conversational AI.

Installation

npm i @kuotie/core

Usage

Normalize a text:

const { normalize } = require('@kuotie/core');
console.log(normalize('àñÍS'));
// anis

Tokenize a text:

const { tokenize } = require('@kuotie/core');
console.log(tokenize('this Should,  , be.splitted'));
// ['this', 'Should', 'be', 'splitted']

Stem a text: this is a mock, so it returns exactly the input.

const { stem } = require('@kuotie/core');
console.log(stem(['this', 'should', 'be', 'stemmed']));
// ['this', 'should', 'be', 'stemmed']

Generate an uuid: for compatibility with browsers.

const { uuid } = require('@kuotie/core');
console.log(uuid());
// 1e74bd9c-1cf6-14b6-0452-aee99ba87dab

Readme

Keywords

none

Package Sidebar

Install

npm i @kuotie/core

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

5.15 kB

Total Files

6

Last publish

Collaborators

  • jesus-seijas
  • jseijas