How to do this? Substituting a general word with a random particular? [on hold]












0












$begingroup$


For a pet project I need general words substituted with a random particular.
Example, if I write [country] [color], it could give out: Argentina Green or India Blue. Or anything random from the set of all terms having a country name followed by a color name.



I have looked into wikidata, but results haven't been satisfactory.










share|improve this question







New contributor




Sahil Gupta is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$



put on hold as unclear what you're asking by Siong Thye Goh, Spacedman, Ethan, Toros91, Dawny33 yesterday


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.


















  • $begingroup$
    In some particular programming language? Given a finite set of categories and instances of that category? So for example if it knows nothing about spacecraft and cheese you could do [spacecraft] [cheese] and it could return "Apollo Cheddar", without "spacecraft" being coded into it?
    $endgroup$
    – Spacedman
    2 days ago










  • $begingroup$
    Yes correct. And in any programming language.
    $endgroup$
    – Sahil Gupta
    2 days ago










  • $begingroup$
    This seems to be a straightforward programming problem. In Python: countries = [...]; colors = [...]; import random; print(random.choice(countries), random.choice(colors)). You'd have to populate countries and colors yourself. This seems too easy, though - is there a particular thing you're looking for that this snippet wouldn't do?
    $endgroup$
    – Akshat Mahajan
    2 days ago












  • $begingroup$
    Well that's the thing. I want this without pre-populating anything. May be some API which serves instances of every generic archetype.
    $endgroup$
    – Sahil Gupta
    yesterday
















0












$begingroup$


For a pet project I need general words substituted with a random particular.
Example, if I write [country] [color], it could give out: Argentina Green or India Blue. Or anything random from the set of all terms having a country name followed by a color name.



I have looked into wikidata, but results haven't been satisfactory.










share|improve this question







New contributor




Sahil Gupta is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$



put on hold as unclear what you're asking by Siong Thye Goh, Spacedman, Ethan, Toros91, Dawny33 yesterday


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.


















  • $begingroup$
    In some particular programming language? Given a finite set of categories and instances of that category? So for example if it knows nothing about spacecraft and cheese you could do [spacecraft] [cheese] and it could return "Apollo Cheddar", without "spacecraft" being coded into it?
    $endgroup$
    – Spacedman
    2 days ago










  • $begingroup$
    Yes correct. And in any programming language.
    $endgroup$
    – Sahil Gupta
    2 days ago










  • $begingroup$
    This seems to be a straightforward programming problem. In Python: countries = [...]; colors = [...]; import random; print(random.choice(countries), random.choice(colors)). You'd have to populate countries and colors yourself. This seems too easy, though - is there a particular thing you're looking for that this snippet wouldn't do?
    $endgroup$
    – Akshat Mahajan
    2 days ago












  • $begingroup$
    Well that's the thing. I want this without pre-populating anything. May be some API which serves instances of every generic archetype.
    $endgroup$
    – Sahil Gupta
    yesterday














0












0








0





$begingroup$


For a pet project I need general words substituted with a random particular.
Example, if I write [country] [color], it could give out: Argentina Green or India Blue. Or anything random from the set of all terms having a country name followed by a color name.



I have looked into wikidata, but results haven't been satisfactory.










share|improve this question







New contributor




Sahil Gupta is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$




For a pet project I need general words substituted with a random particular.
Example, if I write [country] [color], it could give out: Argentina Green or India Blue. Or anything random from the set of all terms having a country name followed by a color name.



I have looked into wikidata, but results haven't been satisfactory.







dataset






share|improve this question







New contributor




Sahil Gupta is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




Sahil Gupta is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




Sahil Gupta is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 2 days ago









Sahil GuptaSahil Gupta

6




6




New contributor




Sahil Gupta is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Sahil Gupta is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Sahil Gupta is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




put on hold as unclear what you're asking by Siong Thye Goh, Spacedman, Ethan, Toros91, Dawny33 yesterday


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.









put on hold as unclear what you're asking by Siong Thye Goh, Spacedman, Ethan, Toros91, Dawny33 yesterday


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.














  • $begingroup$
    In some particular programming language? Given a finite set of categories and instances of that category? So for example if it knows nothing about spacecraft and cheese you could do [spacecraft] [cheese] and it could return "Apollo Cheddar", without "spacecraft" being coded into it?
    $endgroup$
    – Spacedman
    2 days ago










  • $begingroup$
    Yes correct. And in any programming language.
    $endgroup$
    – Sahil Gupta
    2 days ago










  • $begingroup$
    This seems to be a straightforward programming problem. In Python: countries = [...]; colors = [...]; import random; print(random.choice(countries), random.choice(colors)). You'd have to populate countries and colors yourself. This seems too easy, though - is there a particular thing you're looking for that this snippet wouldn't do?
    $endgroup$
    – Akshat Mahajan
    2 days ago












  • $begingroup$
    Well that's the thing. I want this without pre-populating anything. May be some API which serves instances of every generic archetype.
    $endgroup$
    – Sahil Gupta
    yesterday


















  • $begingroup$
    In some particular programming language? Given a finite set of categories and instances of that category? So for example if it knows nothing about spacecraft and cheese you could do [spacecraft] [cheese] and it could return "Apollo Cheddar", without "spacecraft" being coded into it?
    $endgroup$
    – Spacedman
    2 days ago










  • $begingroup$
    Yes correct. And in any programming language.
    $endgroup$
    – Sahil Gupta
    2 days ago










  • $begingroup$
    This seems to be a straightforward programming problem. In Python: countries = [...]; colors = [...]; import random; print(random.choice(countries), random.choice(colors)). You'd have to populate countries and colors yourself. This seems too easy, though - is there a particular thing you're looking for that this snippet wouldn't do?
    $endgroup$
    – Akshat Mahajan
    2 days ago












  • $begingroup$
    Well that's the thing. I want this without pre-populating anything. May be some API which serves instances of every generic archetype.
    $endgroup$
    – Sahil Gupta
    yesterday
















$begingroup$
In some particular programming language? Given a finite set of categories and instances of that category? So for example if it knows nothing about spacecraft and cheese you could do [spacecraft] [cheese] and it could return "Apollo Cheddar", without "spacecraft" being coded into it?
$endgroup$
– Spacedman
2 days ago




$begingroup$
In some particular programming language? Given a finite set of categories and instances of that category? So for example if it knows nothing about spacecraft and cheese you could do [spacecraft] [cheese] and it could return "Apollo Cheddar", without "spacecraft" being coded into it?
$endgroup$
– Spacedman
2 days ago












$begingroup$
Yes correct. And in any programming language.
$endgroup$
– Sahil Gupta
2 days ago




$begingroup$
Yes correct. And in any programming language.
$endgroup$
– Sahil Gupta
2 days ago












$begingroup$
This seems to be a straightforward programming problem. In Python: countries = [...]; colors = [...]; import random; print(random.choice(countries), random.choice(colors)). You'd have to populate countries and colors yourself. This seems too easy, though - is there a particular thing you're looking for that this snippet wouldn't do?
$endgroup$
– Akshat Mahajan
2 days ago






$begingroup$
This seems to be a straightforward programming problem. In Python: countries = [...]; colors = [...]; import random; print(random.choice(countries), random.choice(colors)). You'd have to populate countries and colors yourself. This seems too easy, though - is there a particular thing you're looking for that this snippet wouldn't do?
$endgroup$
– Akshat Mahajan
2 days ago














$begingroup$
Well that's the thing. I want this without pre-populating anything. May be some API which serves instances of every generic archetype.
$endgroup$
– Sahil Gupta
yesterday




$begingroup$
Well that's the thing. I want this without pre-populating anything. May be some API which serves instances of every generic archetype.
$endgroup$
– Sahil Gupta
yesterday










0






active

oldest

votes

















0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

How to label and detect the document text images

Vallis Paradisi

Tabula Rosettana