update readme
This commit is contained in:
parent
7d5d213675
commit
e408762b69
|
@ -190,14 +190,14 @@ WordPOS.defaults = {
|
||||||
profile: false
|
profile: false
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
To override, pass an options hash to the constructor:
|
To override, pass an options hash to the constructor. With the `profile` option, all callbacks receive a second argument that is the execution time in msec of the call.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
wordpos = new WordPOS({profile: true});
|
wordpos = new WordPOS({profile: true});
|
||||||
|
wordpos.isAdjective('fast', console.log);
|
||||||
|
// true 29
|
||||||
```
|
```
|
||||||
|
|
||||||
With the `profile` option, all callbacks receive a second argument that is the execution time in msec of the call.
|
|
||||||
|
|
||||||
|
|
||||||
Benchmark
|
Benchmark
|
||||||
----------
|
----------
|
||||||
|
|
Loading…
Reference in New Issue