Added LanguageProfileWriter.writeToDirectory().