Skip to content

Commit 35cffd8

Browse files
committed
Update example in readme.md
1 parent 1c70044 commit 35cffd8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

readme.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ npm install nlcst-normalize
1515
```js
1616
var normalize = require('nlcst-normalize');
1717

18-
normalize('Don’t'); //=> 'dont'
1918
normalize('Don\'t'); //=> 'dont'
19+
normalize('Don’t'); //=> 'dont'
20+
normalize('Don’t', {allowApostrophes: true}); //=> 'don\'t'
2021
normalize('Block-level'); //=> 'blocklevel'
21-
normalize('Don’t', true); //=> 'don\'t'
22+
normalize('Block-level', {allowDashes: true}); //=> 'block-level'
2223

2324
normalize({
2425
type: 'WordNode',

0 commit comments

Comments
 (0)