-
-
Save norcal82/c219ecf9b932d7db4ee6 to your computer and use it in GitHub Desktop.
// https://gist.github.com/dblandin/2991970 | |
Alaska | |
Alabama | |
Arkansas | |
American Samoa | |
Arizona | |
California | |
Colorado | |
Connecticut | |
District of Columbia | |
Delaware | |
Florida | |
Georgia | |
Guam | |
Hawaii | |
Iowa | |
Idaho | |
Illinois | |
Indiana | |
Kansas | |
Kentucky | |
Louisiana | |
Massachusetts | |
Maryland | |
Maine | |
Michigan | |
Minnesota | |
Missouri | |
Mississippi | |
Montana | |
North Carolina | |
North Dakota | |
Nebraska | |
New Hampshire | |
New Jersey | |
New Mexico | |
Nevada | |
New York | |
Ohio | |
Oklahoma | |
Oregon | |
Pennsylvania | |
Puerto Rico | |
Rhode Island | |
South Carolina | |
South Dakota | |
Tennessee | |
Texas | |
Northern Mariana Islands | |
Utah | |
Virginia | |
Virgin Islands | |
Vermont | |
Washington | |
Wisconsin | |
West Virginia | |
Wyoming |
🙏
Good u sloved my problem
Thank you very much for your service to the worldwide community of developers!
@norcal82 Thanks so much!! One error I noticed is: "District of Columbia" is on separate lines, instead of concatenated.
Thank you for posting these 👍
Heads up that there are not in alphabetical order in case anyone is expecting that!
The Northern Mariana Islands should be listed given all other inhabited US territories are
Tiny suggestion - I think it should be "Northern Mariana Islands" without the "The". That seems to be the canonical name:
@bertday updated. thank you for the correction
@bertday correct—the U.S. Code uses ‘the Northern Mariana Islands’ (lowercase ‘t’) as the short name (the full name being Commonwealth of the Northern Mariana Islands). See, e.g., 48 U.S.C. § 1479. The usual convention is that, unless the ‘The’ (capital T) is an integral part of the name, like The Bahamas or The Gambia, it’s omitted in lists.
On alphabetizing, should we have 1–50 be the U.S. states alphabetically, then 51 is the District of Columbia, then the inhabited U.S. territories alphabetically followed by the uninhabited ones that get ISO codes (e.g., Wake Island or Palmyra Atoll)? I anticipate most use cases will involve 50 states, followed by ones needing DC, followed by ones needing the inhabited territories, followed way way back by ones needing all the ISO designated ones for the uninhabited territories? This makes it more complicated, but equally, my use case (admittedly something very silly involving a geography guessing game) required deleting the territories and D.C. so I had just lines 1–50 as the states. Of course, it costs nothing to make other gists with variations but this gist seems to be the standard one with the largest use (given that, amazingly, there wasn’t anything else that showed up with a quick and easy plain text list)
Awesome, thanks