A short and simple script for detecting if the input text is cyrillic or latin.
It will output strings of ISO codes for the appropriate script ('Cyrl' and 'Latn' for cyrillic and latin respectively).
Just pass it a string and it will output the result.
The test folder contains a simple ava test, you can configure it differently if you wish.
; //initializing the packageconsole; //output will be Latnconsole// output will be Cyrlconsole/*cyrillic text is more numerous by 1 character, thus giving an output of Cyrl*/