Skip to content

Commit

Permalink
Refactor code-style in useage example in Readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Oct 16, 2014
1 parent f574f0a commit ea43e66
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ franc.all('O Brasil caiu 26 posições em');
* ]
*/

// You can provide whitelist and/or blackilist to speed things up:
franc.all('O Brasil caiu 26 posições em', {whitelist: ['por', 'src', 'glg', 'spa']});
/* Provide a whitelist: */
franc.all('O Brasil caiu 26 posições em', {
'whitelist' : ['por', 'src', 'glg', 'spa']
});
/*
* [
* [ 'por', 5507 ],
Expand All @@ -69,7 +71,10 @@ franc.all('O Brasil caiu 26 posições em', {whitelist: ['por', 'src', 'glg', 's
* ]
*/

franc.all('O Brasil caiu 26 posições em', {blacklist: ['src', 'glg', 'lav']});
/* Provide a blacklist: */
franc.all('O Brasil caiu 26 posições em', {
'blacklist' : ['src', 'glg', 'lav']
});
/*
* [
* [ 'por', 5507 ],
Expand All @@ -86,8 +91,6 @@ franc.all('O Brasil caiu 26 posições em', {blacklist: ['src', 'glg', 'lav']});
*/

franc.all(''); // [ [ 'und', 1 ] ]


```

> Note!: **franc** returns the `"und"` language code for an undetermined language. This happens when the input value is too short to give a significant answer.
Expand Down

0 comments on commit ea43e66

Please sign in to comment.