-
-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/normalize-results'
This breaking new feature makes the numbers returned by `franc.all()` more usefull by interpolating them between the most probable language's distance, and the maximum distance. Normalized results make it easier for developers (see GH-13) to know how 'sure' franc is about the most probable language, for example by checking if the difference between the primary and secondary languages is more than `n` (where `n` could be, for example, `0.9`). The resulting numbers are now guaranteed to be between (including) `0` and `1` (including).
- Loading branch information
Showing
2 changed files
with
45 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters