tetrak_translit.detect

tetrak_translit.detect(text)[source]

Detect the script of text and, for a registered script, its variant.

Parameters:

text (str) – Any string. Digits, punctuation and whitespace are ignored; only letters count.

Returns:

A Detection.

Return type:

Detection