This is not important, but it will help make your plugin more quality and raise its "level" There are 2 examples: for Russian and English Source code and description on GitHub Spoiler: Sample code PHP: <?php require_once 'src/AlexBrin/Utils/aUtils.php'; use AlexBrin\Utils\aUtils; $example_ru = '@3_яблоко|яблока|яблок@'; $example_en = '@3_apple|apples|apples@'; echo aUtils::getDeclination($example_ru); // Вернет "3 яблока" echo '<br>'; echo aUtils::getDeclination($example_en); // return "3 apples?>
Note also that there are so many variants of plurals in languages around the world. https://developer.android.com/guide/topics/resources/string-resource.html#Plurals