UNPKG

enclout-node

Version:

(unofficial) Enclout Language Processing API Module for NodeJs

45 lines (35 loc) 1.1 kB
[![Build Status](https://travis-ci.org/AdhityaRamadhanus/encloute-node.svg?branch=master)](https://travis-ci.org/AdhityaRamadhanus/encloute-node) <h1>Enclout-Node</h1> <p> <a href="#installation">Installation</a> | <a href="#usage">Usage</a> | <a href="#license">License</a> <br><br> <blockquote> Enclout Language Api (<a href="https://www.enclout.com/">https://www.enclout.com</a>) module for nodejs </blockquote> </p> Installation ------------ `npm install enclout-node` Usage ----- ```js var encloutApi = require('enclout-node') // Yes we return promises (y) encloutApi.stemming('Fishing in the world').then(console.log).catch(function (err) { console.log('Got Error , ' + err) }) /*{ text: 'Fish in the world', porter_stem: 'Fish in the world', uea_stem: 'Fish in the world', snowball_stem: 'Fish in the world' }*/ encloutApi.termAnalysis('Fishing in the world').then(console.log).catch(function (err) { console.log('Got Error , ' + err) }) /*{ text: 'Fishing in the world', lemma_text: ' fish in the world' }*/ ``` License ---- MIT © [Adhitya Ramadhanus]