Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisport committed Apr 18, 2015
1 parent 1fd3c39 commit e24f0b2
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ frequent token 'X' of the analyzed text, map['X'] will be 1.
## Usage
### Detect
#### Get the closest language:
The default detector supports the following languages*:
The default detector supports the following languages:
**Arabic, English, French, German, Hebrew, Russian, Turkish**

``` go
Expand Down Expand Up @@ -77,7 +77,7 @@ New languages can directly be analyzed and added to a detector by providing a te
The text sample should be bigger then 200kb and can be "dirty" (special chars, lists, etc.), but the language
should not change for long parts.

Altermatively Analyze can be used and the resulting language can added using AddLanguage method:
Alternatively Analyze can be used and the resulting language can added using AddLanguage method:

``` go
text_sample := GetTextFromFile("samples/polish.txt")
Expand All @@ -86,4 +86,13 @@ Altermatively Analyze can be used and the resulting language can added using Add
//language can be added selectively to detectors
detectorA.AddLanguage(french)
detectorC.AddLanguage(french)
```
```

## Contribution

Suggestions and Bug reports can be made through Github issues.
Contributions are welcomed, there is currently no need to open an issue for it, but please follow the code style, including descriptive tests with [GoConvey](http://goconvey.co/).

## License

Licensed under [Apache 2.0](LICENSE).

0 comments on commit e24f0b2

Please sign in to comment.