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
(
)
Currently we can use the
limitfunction to return a specific quantity of languages:Would be nice to have a standalone function in the library to limit the results by its values.