Skip to content

Commit

Permalink
Refactor example
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jul 9, 2017
1 parent 480106a commit 6868e7a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ Use:
```js
var doubleMetaphone = require('double-metaphone');

doubleMetaphone('michael'); // ['MKL', 'MXL']
doubleMetaphone('crevalle'); // ['KRFL', 'KRF']
doubleMetaphone('Filipowitz'); // ['FLPTS', 'FLPFX']
doubleMetaphone('Xavier'); // ['SF', 'SFR']
doubleMetaphone('delicious'); // ['TLSS', 'TLXS']
doubleMetaphone('acceptingness'); // ['AKSPTNNS', 'AKSPTNKNS']
doubleMetaphone('allegrettos'); // ['ALKRTS', 'AKRTS']
doubleMetaphone('michael'); //=> ['MKL', 'MXL']
doubleMetaphone('crevalle'); //=> ['KRFL', 'KRF']
doubleMetaphone('Filipowitz'); //=> ['FLPTS', 'FLPFX']
doubleMetaphone('Xavier'); //=> ['SF', 'SFR']
doubleMetaphone('delicious'); //=> ['TLSS', 'TLXS']
doubleMetaphone('acceptingness'); //=> ['AKSPTNNS', 'AKSPTNKNS']
doubleMetaphone('allegrettos'); //=> ['ALKRTS', 'AKRTS']
```

With [stemmer][]:
Expand All @@ -30,8 +30,8 @@ With [stemmer][]:
var doubleMetaphone = require('double-metaphone');
var stemmer = require('stemmer');

doubleMetaphone(stemmer('acceptingness')); // [ 'AKSPTNK', 'AKSPTNK' ]
doubleMetaphone(stemmer('allegrettos')); // [ 'ALKRT', 'AKRT' ]
doubleMetaphone(stemmer('acceptingness')); //=> [ 'AKSPTNK', 'AKSPTNK' ]
doubleMetaphone(stemmer('allegrettos')); //=> [ 'ALKRT', 'AKRT' ]
```

## CLI
Expand Down

0 comments on commit 6868e7a

Please sign in to comment.