mirror of
https://github.com/modrinth/code.git
synced 2026-08-30 19:46:33 +00:00
add comment
This commit is contained in:
@@ -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: [] }
|
||||
|
||||
Reference in New Issue
Block a user