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

Small Strings #160

Open
etm opened this issue Nov 2, 2021 · 0 comments
Open

Small Strings #160

etm opened this issue Nov 2, 2021 · 0 comments

Comments

@etm
Copy link

etm commented Nov 2, 2021

CharlockHolmes::EncodingDetector.detect_all("Timeout: 2")

results in

{:type=>:text, :encoding=>"IBM424_ltr", :ruby_encoding=>"binary", :confidence=>27, :language=>"he"},
{:type=>:text, :encoding=>"UTF-8", :ruby_encoding=>"UTF-8", :confidence=>15},
....

in general it seems to try too hard for small strings. for small strings it often favors esoteric (wrong) results over obvious ones.
is it possible to tweak this? is this intended?

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

2 participants
@etm and others