Docsity

English as a Finite State Language: Analyzing Grammars and Limits, Study notes of Linguistics

Toggle sidebar
bg1
Linguistics 401, section 2
Hale
Is English a finite state language?
December 3, 2003
Formal languages
In formal language theory, a language is a set of strings. A string is just a sequence of
symbols chosen from an agreed-upon set of symbols, called the vocabulary or lexicon.
formal language (non-)examples
any sequence of English words from the OED ∈“at by green maybe”, “vanity, all vanity”
/∈“I think que nous allons tromper the lesson”
strings over {a, b, c}starting with a∈abbb,a,afollowed by a million b’s
/∈bcacc, the zero-length string
strings over {a, b, c, d}in alphabetical order ∈abd,ad,bcd,b,abcd
/∈dbcd,ba
The idea of generative grammar is to use grammars to define a set that closely resembles
a natural language – for instance, all and only the acceptable English sentences. However,
not all sets are definable by all types of grammars. What kind of rules do we require to
accurately describe natural languages?
Finite-state grammars
To define (“generate”) strings over {a, b, c, d}in alphabetical order, let S be the start symbol
of the grammar in (1).
(1)
S→a S1
S→b S2
S→c S3
S→d
S1 →b S2
S1 →c S3
S1 →d
S2 →c S3
S2 →d
S3 →d
Grammar (1) has a corresponding finite state machine that recognizes all and only the
sentences it generates.
1
pf3
pf4

Partial preview of the text

Download English as a Finite State Language: Analyzing Grammars and Limits and more Study notes Linguistics in PDF only on Docsity!

Linguistics 401, section 2 Hale Is English a finite state language?

December 3, 2003

Formal languages

In formal language theory, a language is a set of strings. A string is just a sequence of symbols chosen from an agreed-upon set of symbols, called the vocabulary or lexicon.

formal language (non-)examples any sequence of English words from the OED ∈ “at by green maybe”, “vanity, all vanity” ∈ / “I think que nous allons tromper the lesson”

strings over {a, b, c} starting with a ∈ abbb, a, a followed by a million b’s ∈ / bcacc, the zero-length string 

strings over {a, b, c, d} in alphabetical order ∈ abd, ad, bcd, b, abcd ∈/ dbcd, ba

The idea of generative grammar is to use grammars to define a set that closely resembles a natural language – for instance, all and only the acceptable English sentences. However, not all sets are definable by all types of grammars. What kind of rules do we require to accurately describe natural languages?

Finite-state grammars

To define (“generate”) strings over {a, b, c, d} in alphabetical order, let S be the start symbol of the grammar in (1).

S → a S S → b S S → c S S → d S1 → b S S1 → c S S1 → d S2 → c S S2 → d S3 → d

Grammar (1) has a corresponding finite state machine that recognizes all and only the sentences it generates.

S

final

d

S

a

S

b

S

c

d

b

c

d

c

d

The Chomsky Hierarchy

Let A, B be nonterminals, b a terminal, α a nonempty sequence of either kind of symbol, and γ, δ possibly empty sequences of either kind of symbol. The Chomsky Hierarchy is a classification of languages in a subset relationship. Each language has corresponding class of machine that recognizes it.

language rule type machine finite-state A → bC finite state machine context-free A → α push down automaton context-sensitive γAδ → γαδ linear bounded automaton unrestricted no restriction Turing machine

The cardinality of the set of languages definable by a grammar formalism is called its gener- ative capacity. Natural languages are believed to reside somewhere between context-free and context-sensitive.