update readme

This commit is contained in:
moos 2012-05-07 21:47:59 -07:00
parent 7d5d213675
commit e408762b69
1 changed files with 3 additions and 3 deletions

View File

@ -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
---------- ----------