python-holidays icon indicating copy to clipboard operation
python-holidays copied to clipboard

Standardize subdivision naming for Armenia holidays

Open VardanMesrobyan opened this issue 8 months ago • 3 comments

Is your feature request related to a problem? Please describe. While reviewing the Armenia holiday definitions, I noticed that subdivision names use a mix of transliteration styles, such as "Aragac̣otn", "Geġark'unik'", "Loṙi", and "Širak". These forms may be linguistically accurate, but they differ from more commonly used English representations, which could lead to inconsistency or confusion for users.

Describe the solution you'd like It would be helpful to standardize subdivision naming or provide normalized aliases (e.g., "Aragatsotn", "Gegharkunik", "Lori", "Shirak") to improve usability and consistency across the library.

Describe alternatives you've considered An alternative approach could be to keep the current names but expand the subdivisions_aliases mapping to include more commonly used English forms.

Additional context This could also improve consistency across locales and support future localization improvements.

VardanMesrobyan avatar Mar 22 '26 06:03 VardanMesrobyan

Hi! I’d like to work on standardizing the subdivision naming for Armenia holidays. I’m planning to normalize the names and update/add aliases to maintain backward compatibility. Please let me know if that approach works.

Devika9705 avatar Mar 22 '26 06:03 Devika9705

Hi! I’d like to work on standardizing the subdivision naming for Armenia holidays. I’m planning to normalize the names and update/add aliases to maintain backward compatibility. Please let me know if that approach works.

Just add the ASCII-safe version as extra subdivision_aliases instead of removing ISO 3166:AM accurate ones altogether

See https://github.com/vacanza/holidays/blob/27f49563257903dbc43646707a9ea6f6a8cbf3fa/holidays/countries/new_zealand.py#L25 and https://github.com/vacanza/holidays/blob/27f49563257903dbc43646707a9ea6f6a8cbf3fa/holidays/countries/malaysia.py#L135 for examples

I'll leave it in your care then @Devika9705

PPsyrius avatar Mar 22 '26 07:03 PPsyrius

Thanks for the clarification! I’ll add the ASCII-safe versions as subdivision_aliases without removing the ISO 3166:AM accurate ones. I’ll follow the examples you shared and update the PR accordingly.

Devika9705 avatar Mar 22 '26 08:03 Devika9705