Is there a formal grammar for english language? [closed]
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
开发者_如何学Python Improve this questionI'm browsing web searching for english language grammar, but i found only few simple examples like:
s -> np vp
np -> det n
vp -> v | v np
det -> 'a' | 'the'
n -> 'woman' | 'man'
v -> 'shoots'
Maybe I don't realise how big this problem is because i tought that grammar has been formalised. Can somebody provide me a source for some expanded formal english grammar?
Have a look at the English Resource Grammar, which you can use with the LKB or PET
Not perfect, surely not complete, not ideal from the theoretical point of view. But the nicest one I found: http://www.scientificpsychic.com/grammar/enggram1.html
It would be huge. Probably not possible.
Human languages are interpreted by "analog" creatures in (generally) a very forgiving way, not by dumb digital machines that can insist that rules be followed. They do tend to have some kind of underlying structure, but exceptions abound. Really the only "rule" is to make it possible for others to understand you.
Even among biological languages, English would be about the worst possible choice, because of its history. It started probably as a pidgen of various different Germanic languages (with attendent simplifications), then had a large amount of French overlaid onto it after the Norman Conquest, then had bits and peices of nearly every language in the world grafted onto it.
To give you some idea of the scale we are talking about, let's assume we can consider dictionaries to be your list of terminals for a human language. The only major work that makes a passable stab at being comprehensive for English is the Oxford English Dictionary, which contains more than half a million entries. However, very few people probably know more than 1/10th of them. That means that if you picked out random words from the OED and built sentences out of them, most English speakers would have trouble even recognizing the result as English.
Different groups of speakers tend to know different sets of words too. So just about every user of the language learns to tailor their vocabulary (list of used terminals) to their audience. I speak very differently to my buddies from the "wrong side of the tracks" than I do with my family, and different still than I do here on SO.
Look at Attempto Controlled English : http://attempto.ifi.uzh.ch/site/
You may want to examine the work of Noam Chomsky and the people that followed him. I believe much of his work was on the generative properties of language. See the Generative Grammar article on Wikipedia for more details.
The standard non-electronic resource is The Cambridge Grammar of the English Language.
精彩评论