Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request - Min language's values #43

Open
FabianoLothor opened this issue Aug 1, 2021 · 0 comments
Open

Feature Request - Min language's values #43

FabianoLothor opened this issue Aug 1, 2021 · 0 comments

Comments

@FabianoLothor
Copy link

FabianoLothor commented Aug 1, 2021

Currently we can use the limit function to return a specific quantity of languages:

$ld->detect('Mag het een onsje meer zijn?')->blacklist('af', 'dk', 'sv')->limit(0, 4)->close();

Array
(
    "nl" => 0.66193548387097
    "br" => 0.49634408602151
    "nb" => 0.48849462365591
    "nn" => 0.48741935483871
)

Would be nice to have a standalone function in the library to limit the results by its values.

$ld->detect('Mag het een onsje meer zijn?')->blacklist('af', 'dk', 'sv')->min(0.5)->close(); // or atLeast() instead of min()

Array
(
    "nl" => 0.66193548387097
)

// In case of a greater than number:

$ld->detect('Mag het een onsje meer zijn?')->blacklist('af', 'dk', 'sv')->min(1)->close(); // or atLeast() instead of min()

Array
(
)
@FabianoLothor FabianoLothor changed the title Feature Request - Min value of Feature Request - Min language's values Aug 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant