25 static const int kMinAbsoluteGarbageWordLength = 10;
26 static const float kMinAbsoluteGarbageAlphanumFrac = 0.5f;
49 for (x = 0; x < word.
length(); ++x) {
59 if (state == -1)
return false;
66 if (word.
length() < kMinAbsoluteGarbageWordLength)
return false;
68 for (
int x = 0; x < word.
length(); ++x) {
72 return (static_cast<float>(num_alphanum) /
73 static_cast<float>(word.
length()) < kMinAbsoluteGarbageAlphanumFrac);