'; echo '
'; foreach ($files as $file) { $language = basename($file, '.txt'); echo $language.'
'; write_file($_current_dir.'language_profiles/'.$language.'.txt', join("\n", _api_generate_n_grams(read_file($file), 'UTF-8', 400, 4))); } echo '
'; echo 'Done.
';