Click here to Skip to main content
15,880,405 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
Hello Everyone,
Is it possible to generate similar question in c# below is the example what i want to do

My string is :- How are you
After processing the text the app should generate below like string

1:-How do u do
2:-how are you doing
3:-what's up

Thanks
Rajnarrayan Bose

What I have tried:

Tried from searching in google but not getting any suitable code
Posted
Updated 21-Jul-17 7:07am
Comments
David_Wimbley 21-Jul-17 12:12pm    
Yes it is possible.
Raj tilak Bose 21-Jul-17 12:17pm    
Plz guide me plz
or if u have any link please provide me
Raj tilak Bose 21-Jul-17 12:23pm    
@david can you please guide me on this please ?
Raj tilak Bose 21-Jul-17 12:16pm    
Plz guide me plz
Raj tilak Bose 21-Jul-17 12:16pm    
or if u have any link please provide me

You can simply do something like this:
Random rnd = new Random();

List<string> askHowAreYou = new List<string>() { "How are you?", "How do you do?", "What's up?"};

string question = list[rnd.Next(list.Count)];

Good luck!
 
Share this answer
 
v2
Good luck with that. Considering you're trying to get a computer to understand common conversation and context, that's the realm of AI and still very much university and very expensive corporate research projects, like IBM's Watson.
 
Share this answer
 
v2
Comments
Raj tilak Bose 23-Jul-17 4:59am    
Yes
Dave Kreskowiak 23-Jul-17 11:04am    
I take it by your response of "Yes", you're looking for code to use in your own project?
Raj tilak Bose 24-Jul-17 10:31am    
I want Code , if you have any reference please guide me
Dave Kreskowiak 24-Jul-17 10:43am    
Not going to happen. We're not a code writing service and the code you want takes a LOT of research to write. This is not something you're going to find and download on the web. Examples just don't exist because this stuff rides on the bleeding edge of technology.

Start reading this stuff: Microsoft Research AI (MSR AI)[^]
Raj tilak Bose 24-Jul-17 10:45am    
Ok thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900