Count number of hits for the most frequented letters in Arabic language (Alef, Lam and Yaa), then calculate association ratio with each of possible character set (UTF-8, Windows-1256 and ISO-8859-6)
Tags:
return:
Character set as key and string association ratio as value