Comparing version
{ | ||
"name": "node-ngram", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Nodejs text n-grams", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# node-ngram | ||
Ngram for Nodejs | ||
Ngram for Nodejs. | ||
# Instalation | ||
```sh | ||
npm install node-ngram | ||
``` | ||
# Example | ||
```js | ||
@@ -13,2 +21,3 @@ var Ngram = require('node-ngram'); | ||
console.log(ngram.ngram("Le Van Duyet")); | ||
// => [["Le", "Van"], ["Van", "Duyet"]] | ||
console.log(ngram.ngram("Le Van Duyet", 3)); | ||
@@ -18,2 +27,7 @@ console.log(ngram.ngram("Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit.")); | ||
# Test | ||
```sh | ||
npm test | ||
``` | ||
# How to contribute | ||
@@ -20,0 +34,0 @@ 1. Fork the project on Github |
5260
2.51%46
43.75%