answersLogoWhite

0


Best Answer

The short answer is you can't - natural language can't always be be translated into a programming language; in fact even people can't always understand natural language and things have to be rephrased to improve understanding. However, work has been done on this and the starting point is that natural language statements are composed of sentences. A sentence, in general, has noun parts and verb parts. Its usually possible to break a sentence into noun parts and a single verb part (this is called parsing). For example: "The quick brown fox jumps over the lazy dog." Has two noun parts (fox and dog) and one verb part (jumps). To convert this into a programming language representation, you need a function (or object) to handle each verb; one function per verb. So after parsing, you might end with a function call such as: (jump fox dog) This is in lisp; one of the most popular languages for natural language interpretation. For more information about natural language, you can look at the works of Terry Winograd.

User Avatar

Wiki User

16y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How can you translate natural language in to programming language?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Law

Should the terms of your parole by law be translated on your original language in order to you legally sign them?

Language requirements vary by jurisdiction. In Canada (where I type) everyone has the right to receive all official communications in either English or French, which ever they prefer. Those are the two official languages of Canada. If a person does not speak either English or French, that person is free to employ a translator, but it is not the government's responsibility to translate for him or her. You would definitely be advised to obtain a translation of anything that you are asked to sign, before you sign it. If necessary, get someone to translate for you.


How do you translate Fiscalia Municipal into English?

Municipal Attorney


What does la cour translate to in English?

the yard, the backyard


What does the spanish word marano mean?

Marano is a family name, as such cannot be translated in Spanish. Using a translator, like Yahoo! Babel Fish, you will notice that only Marrano translates to Pig, meaning that two "rr"s are required. However, the reverse transalation would result in Cerdo and Puerco. Therefore, it would be misleading if Marano would be translated in any language with result differently from how it is actually spelled. Edited: Regardless many spanish words can translate into one English word. Even if in a translator pig translates to cerdo or puerco, marrano is also a pig even if the translator doesn't translate it into marrano. Depending on how the word is used, even if it is misspelled, it can mean pig. I would know, it is my native language and I continue to speak it.


Characteristics of linear programming model?

1- single quantifiable objective ( Maximization of contribution) 2- No change in variables used in analysis 3- products are independent of each other 4- applicable in short term

Related questions

Is natural language a fifth generation programming language?

Yes, natural language is a fifth generation programming language.


What are the differences between QBasic and FORTRAN Programming language?

PROGRAMMING is a process of developing computer program.While FOTRAN means formula translation which translate math formula into code in high level programming language.


Is there any software which can convert a paragraph into an application?

No. While there have been attempts to create interpreters to translate from a natural language into a computer language, they are largely for the purposes of research. Any existing systems like these have the same rigid constraints of any other programming language.


What is the best website to download C programming language?

Programming languages (or natural languages) cannot be downloaded.


The C programming Language free download?

Programming languages (or natural languages) cannot be downloaded.


What is the difference between program language and procedural language?

programming language is of two type 1. procedural programming language 2.non procrdural programming language .. ----non procedural programming language means that which relates with the real world.. for example-oops oops is a non procedural programming language because it relates to the object and object relate to the natural or real world where as that languge which does not belong to the real world is known as procedural language


Does c a good computer programming language?

Yes it is. (Also, English is a good natural language, you should learn it.)


Is XML a programming language?

It is programming languages that are referred to in terms of "high level" and "low level".Extensible Markup Language(XML) is a markup language not a programming language, it is a data formatting specification that makes the presentation of data independent of programs (so that data can be passed between programs).For this reason the answer to your question is "neither".


What translator is needed for C programming language?

To translate the C source code program, you need a program called a "C compiler".


What is a computer program written in English language called?

Pseudocode. However, pseudocode is not a programming language as such. It is a language that a programmer uses specifically to convey the concept of a specific algorithm to other programmers. The language is such that any programmer can easily translate the algorithm into their preferred language. Furthermore, pseudocode does not have to be written in English, it can be written in any language. However, English is the most widely-spoken language within the programming community and is therefore the most prevalent language used in programming.


What is programming launguage?

A programming language is a language to communicate with the machine (computer). It can either high or low level programming language. A high level programming language is harder to understand by computers but easier by people. These include BASIC, C++, Java and etc. Low level programming languages are understandable by computers and people , like assembly and other system programing languages. Compilers/Linkers/Interpreters are needed to translate between programming language into machine language (binary code - 010001001 etc). If you want to learn programming language, first you should learn Basic or Python then goto C++ or Java. You can also learn C instead of C+++, your choice.


How do you install C language from a website?

You cannot install programming languages (or natural languages, either) on your computer. You can install compilers for programming languages, though.