occurence_zuoqin
v1.0.2
Published
## 1. what is it?
Downloads
5
Readme
Occurence
1. what is it?
Occurence is a library to find the occurence of all the words in a given text.
- it will ignore words whose length is less than 3.
- it will filter away punctuations like #,«,»,’,? etc.
2. intallation?
npm install occurence_zuoqin --save
3. how to use it?
import Occurence from "occurence_zuoqin";
let text = `Hello, hello HEllo ?
{hello} "hello \hello" -hello *hello
`;
let result = Occurence(text); // output: { hello: 8 }