There are multiple implementation for detecting the country on android using kotlin. But by far the most simple way to do it is with this line of code:

String country = context.getResources().getConfiguration().locale.getCountry();
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence