Identify the language of a piece of string instead of a file #6256
Answered
by
lildude
sh-soltanpour
asked this question in
Q&A
-
Hi, I have a use case in which I'm gonna detect the language of a string that I have (it has no file and extension information). I was wondering if Linguist is able to do so or not since I did not find such functionality in the README. Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
lildude
Jan 18, 2023
Replies: 1 comment
-
No, it can't directly as it stands as it is designed to analyse files as a whole. However, you should be able to tap into the various strategies that analyse the content in your own code. How you do that it entirely an exercise for you 😉. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sh-soltanpour
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No, it can't directly as it stands as it is designed to analyse files as a whole. However, you should be able to tap into the various strategies that analyse the content in your own code. How you do that it entirely an exercise for you 😉.