How to do this? Substituting a general word with a random particular? [on hold]
$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.
dataset
New contributor
$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.
add a comment |
$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.
dataset
New contributor
$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 populatecountries
andcolors
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
add a comment |
$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.
dataset
New contributor
$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
dataset
New contributor
New contributor
New contributor
asked 2 days ago
Sahil GuptaSahil Gupta
6
6
New contributor
New contributor
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 populatecountries
andcolors
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
add a comment |
$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 populatecountries
andcolors
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
add a comment |
0
active
oldest
votes
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
$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 populatecountries
andcolors
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