add comment

This commit is contained in:
tdgao
2026-08-28 18:06:08 -06:00
parent 3b0052eeda
commit b13593e023
@@ -37,6 +37,7 @@ function hasEnoughWords(text: string): boolean {
return false
}
// TODO, the algorithm can still miss cases where english translation is provided and text primarily in another language
export function validateEnglishText(text: string): EnglishTextResult {
if (!hasEnoughCharacters(text) || !hasEnoughWords(text)) {
return { valid: true, detections: [] }