Detecting Mixed Language

Mar 9 at 11:01 AM
This is an amazing tool...

What was your criteria in detecting the appropriate language to use when there is a mix language as parameter (combination of English and Spanish for example)?