1.0.0 • Published 3 years ago

@kuotie/core v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@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