It is a good program but with a big mistake
Persian and Arabic languages are different and you made a big mistake. Arabic and Persian have nothing to do with each other. When you wrote Farsi and under Arabic, you wrote the meaning of that word only in Arabic, and a Persian speaks and writes Persian, not Arabic. And this is the biggest mistake in the structure of language identification. The similarity of writing does not necessarily mean that this language is the same, like Latin languages.