Click here to Skip to main content
15,884,628 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I'm trying to create a code that would transform standard sentences into interrogative sentence. I'm wondering if such code or a similar code already exists.
The code I'm looking for would do this:

EX: The sky is blue --> Is the sky blue?

I’m very novice to programming, so any suggestions and tips will be welcome.
Posted
Updated 23-May-14 11:43am
v2
Comments
Richard MacCutchan 23-May-14 17:44pm    
This is far from simple, and as you say you are a novice programmer, I would suggest trying something closer to your experience level.
Oliver Bleckmann 23-May-14 22:08pm    
This Domain is called Natural Language Processing, search for NLP. This solves the basic problem of interpreting a language programmatically. The next step would be figuring out if there is an algorithm to reassemble the desired result...

1 solution

The answer to your question lies beyond programming. It is the area of Natural Language Processing (NLP), an AI field of studies overarching intersection of linguistic with computer science. Simply put it, how to make machines understand human (natural) languages. Initially, it started with hard-coded rule-based (grammars) machine learning which requires knowledge of the language concerned and large linguistic resources such as dictionary; it then moved on to statistical approaches where some sort of similarity measures are used to infer the meaning and closeness of texts.
Read more: turing-test-revisited[^]
 
Share this answer
 

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