Sami language detection – fugly hack!

so you want to know if a text string is in sami? sami is way too indie for google translate, so i made a really ugly hack to check if a sentence seems to be sami or not. it’s php, you can download and use any way you want. i have no idea what kind of licencing risten.no (the datasource for this hack) uses, so be careful.

use it like this:

include('detect.class.php');
$smadetect = new langdetect;
echo $smadetect->detect_sma_sentence('i can haz musigke at cool club');
echo $smadetect->detect_sma_sentence('i can haz music at cool club');

download the php class here. enjoy!