If a police officer encounters a suspect who has about a 50-50 chance of having committed a violation, then common sense suggests that a stop is justified.
Ethnicity and language are taken into account when patently relevant to whether a crime has been committed, but they're never the sole reason for detention.