Proposed new API: `whatlang_detectn`
iwillspeak opened this issue · 0 comments
iwillspeak commented
For some languages it is more preferable to pass a buffer and a length rather than a null-terminated string. I propose we add the following API for that:
uint8_t whatlang_detectn(const char* text, size_t len, struct whatlang_info* info);
Would you be open to a PR to add this method?