* Move the unique autonyms test to the "autonyms" section
It was in the "redirects" section, and it makes
much more sense for it to be in the "autonyms" section.
* Case-insensitive test for unique autonyms
Autonyms for some languages are very similar or even identical,
but they should be unique in this system so that users
would be able to find the correct language unambiguously.
It's conceivable that someone (including myself) would add
an autonym that will be different only in its usage of
capital letters. This change modifies the test for
unique autonyms so that such cases would be prevented.
---------
Co-authored-by: SrishAkaTux <ssethi@wikimedia.org>
The reason I'm adding it is that recently I almost submitted
a patch in which I wrote a language code with the Cyrillic letter о
instead of the corresponding Latin letter. It's not a perfect test,
but it's good enough for a basic check.
Additional changes in this PR include,
* Added composer.json
* Refactored the folder structure.
* Added editorconfig.
* Added PHPCS and formatted existing code.
* Changes to use a single license - GPL-2.0-or-later
* ESLint related fixes
Bug: T218639