RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  
 

Detect the language of a string

Matt Aimonetti just posted a short blog post showing how to detect the language of a string with MacRuby in less than 10 LOC. "Happy new year!".language # => "en"

Comments

Post a Comment

Note: If you are a registered user, you can log in to populate these fields.

You may use ONLY these HTML tags to format your comment:

<a href="" title=""> <b> <blockquote> <code> <em> <i> <strong>

Do NOT use <p> tags. Just use newlines :-)

s
e
n
J willy
d
S tits
s
e
n
M bum
d