You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would there be any interest in incorporating the United States Internal Revenue Service (IRS) Country Codes into this project?
If you've ever worked in Banking, Finance, Accounting, Investments, etc. you know the joy of how the IRS uses their own (outdated) 2-character country codes that are a little different from the ISO2 codes.
I'm curious if there would be any interest in trying to incorporate that data into this project. Sadly there's not a one-to-one between the codes to allow for easy translation. Probably 80% are the same as the ISO, but the ones that aren't are a pain. Besides some countries simply having a different 2 character code, there are other fun scenarios such as:
The IRS code includes many of the Islands and Atolls that are in the states listing in this project.
Ashmore and Cartier Islands IRS=AT but would map to ISO2=AU
Midway Islands IRS=MQ but would map to ISO2=US
Some of the IRS country names are outdated and therefore their code appears outdated/wrong.
Burma IRS=BM but would map to Myanmar ISO2=MM
Then you have the wonderful catchall:
Other Country IRS=OC that doesn't really map to anything :(
Just all sorts of fun little edge cases like that... The unfortunate thing is I don't think you could simply add the IRS code as another attribute on the ISO2 entry because it's not one-to-one. You'd have 3 IRS codes for Australia, 9 IRS codes for United States, etc. I am guessing you'd have to have a dedicated IRS country code table that you could map back to the ISO entries.
Here's a gist where I've mapped them if you want to see more details.
I'm curious what others think/if there's any interest.
Thanks-
The text was updated successfully, but these errors were encountered:
Would there be any interest in incorporating the United States Internal Revenue Service (IRS) Country Codes into this project?
If you've ever worked in Banking, Finance, Accounting, Investments, etc. you know the joy of how the IRS uses their own (outdated) 2-character country codes that are a little different from the ISO2 codes.
Reference
I'm curious if there would be any interest in trying to incorporate that data into this project. Sadly there's not a one-to-one between the codes to allow for easy translation. Probably 80% are the same as the ISO, but the ones that aren't are a pain. Besides some countries simply having a different 2 character code, there are other fun scenarios such as:
Ashmore and Cartier Islands IRS=AT but would map to ISO2=AU
Midway Islands IRS=MQ but would map to ISO2=US
Burma IRS=BM but would map to Myanmar ISO2=MM
Other Country IRS=OC that doesn't really map to anything :(
Just all sorts of fun little edge cases like that... The unfortunate thing is I don't think you could simply add the IRS code as another attribute on the ISO2 entry because it's not one-to-one. You'd have 3 IRS codes for Australia, 9 IRS codes for United States, etc. I am guessing you'd have to have a dedicated IRS country code table that you could map back to the ISO entries.
Here's a gist where I've mapped them if you want to see more details.
I'm curious what others think/if there's any interest.
Thanks-
The text was updated successfully, but these errors were encountered: