4 ms·
Tangentially related to the original project intent; Is there a place where common things in the dev world like this are accumulated? For example, a list of al
by sbr464 8y ago
Tangentially related to the original project intent;
Is there a place where common things in the dev world like this are accumulated? For example, a list of all countries or list of the US states, for use with an HTML dropdown. I know there are various repos on Github that maintain these types of lists, such as English stop words, profanity word lists etc, but is there a service that accumulates these in a familiar, structured api?
- majewsky 8y agoLook at Wikipedia's lists of things. For your particular examples: https://en.wikipedia.org/wiki/List_of_sovereign_states https://en.wikipedia.org/wiki/List_of_sovereign_states https://en.wikipedia.org/wiki/U.S._state https://en.wikipedia.org/wiki/U.S._state Some of them are quite meta, such as https://en.wikipedia.org/wiki/List_of_lists_of_lists https://en.wikipedia.org/wiki/List_of_lists_of_lists For a more structured source, Wikidata aims to be that, but I cannot comment on its completeness.
- sbr464 8y agoStructured, maintained API though, not general knowledge. I personally see an issue that someone has to accumulate their own stash of structured data for common knowledge (random examples) like: countries, zip codes, valid HTML5 element names, css properties, hex colors, common naming prefix/suffixes/professional titles, etc. A growing list of work repeated by each dev team/company for really no reason. No complaint about this repo, at all, just seeking if a solution exists.
- darkerside 8y agoHere's a platform specific example. https://github.com/SmileyChris/django-countries/ https://github.com/SmileyChris/django-countries/
- thinkalone 8y agoThere is Corpora: https://github.com/dariusk/corpora/tree/master/data https://github.com/dariusk/corpora/tree/master/data
- bennofs 8y agoWikidata has a SPARQL API though
- JacobDotVI 8y agoOften times instead of the list of US Sates, you actually want to list of US States and Territories: https://en.wikipedia.org/wiki/List_of_states_and_territories_of_the_United_States https://en.wikipedia.org/wiki/List_of_states_and_territories... For example when the intent is "list of place where the USPS ships" or "list of state-level political jurisdictions where US residents live"
- sbr464 8y agoLet’s move this tidbit to a structered api of common knowledge! Dewey decimal for data, not just a generic search engine for datasets in different formats (like the recent google datasets site), but a familiar, goto resource.
- eli 8y agoYes! Surprisingly often I am unable to complete a form because there is no option in the State field for Washington, DC.
- CSMastermind 8y agoThat's a cool idea. I've seen individual packages for things like US states and HTTP status codes but I don't think I've ever seen them all packaged together.
- bluntfang 8y agoI've used faker [0] for stuff like this. I think originally a perl package, has similar packages in other languages as well. I've used the python implementation and enjoy it, along with it's localization feature. It looks like 1.0 was just released as well :D [0] https://github.com/joke2k/faker/releases https://github.com/joke2k/faker/releases
- wastedhours 8y agoWould it essentially be like a graph with multiple nested nodes with different strands of info?
- davinic 8y agoSecLists (https://github.com/danielmiessler/SecLists https://github.com/danielmiessler/SecLists) contains a wealth of security-related lists of this sort, including a useful section containing the most common passwords.