Please fill out the (anonymous) Mid-Quarter Feedback Form

https://savethevowels.org/feedback


“I know the homework is due in a few hours but I just started and I have some questions…”


Remember that your Dean of Student Affairs is here to help you!

http://savethevowels.org/resources


Syntax 2: Phrase Structure Rules

Will Styler - LIGN 101


Today’s Plan


Last time, we talked about constituents


… and we realized that the world of syntax isn’t flat


Now, let’s think a bit more about those structures


Phrase Structure Rules


We have intuitions about what can be inside a noun phrase in English…


Same thing with a prepositional phrase in English


Even a verb phrase has constraints in English


And sentences definitely have rules in English


Unless Yoda you are


So, English has rules about how phrases are built


A good theory of syntax does two things


Today, we’ll talk about a very basic approach to this


HUGE DISCLAIMER


Phrase Structure Rules


Phrase structure rule format


Phrase structure rules are like building blocks of sentences


A Note on Notation


How do we build trees?


Building a phrase structure tree (Part 1)


Building a phrase structure tree (Part 2)


Some tree-drawing rules


ONLY USE THE PHRASE STRUCTURE RULES WE GIVE YOU ON THE HANDOUT


# Introduction to our English Phrase Stucture Rules


Noun Phrase Rules


Rule 1) NP -> DET N’

Rule 3) N’ -> N


Rule 1) NP -> DET N’

Rule 3) N’ -> N


… but what if there’s no determiner?


Rule 2) NP -> N’

Rule 3) N’ -> N


Rule 2) NP -> N’

Rule 3) N’ -> N


Rule 2) NP -> N’

Rule 3) N’ -> N


How do we deal with adjectives?


Rule 4) N’ -> ADJ N’


Rules 1, 3, 4

We can combine Rule 1, Rule 4, and Rule 3…


Rules 1, 3, 4

We can combine Rule 1, Rule 4, and Rule 3…


… Rule 4 is recursive!









(… and so on)


What about prepositions? Linguists love prepositions!

## Rule 5: NP -> NP PP ## Rule 6: PP -> P NP

Rules 5 and 6


“Two computational linguists from San Diego”


“Two computational linguists from San Diego”


Now, let’s make a sentence!


Rule 7: S -> NP VP

Rule 8: VP -> V


Rules 2, 3, 7, 8


Rule 10: VP -> V PP


Rules 2, 3, 6, 7, 10


But lots of verbs are transitive, and take a noun phrase as the object


Rule 9: VP -> V NP


Rules 1, 2, 3, 7, 9


… and we can bring old rules back in!


… and we can bring more old rules back in!


Maybe we want to modify the verbing…


Rule 11: VP -> VP PP

This one’s recursive too!


“Two computational linguists from San Diego walked into a bar”


“Two computational linguists from San Diego walked into a bar”


But this works with all the stuff we’ve been doing…


Is this starting to feel familiar?


Drawing Syntax Trees is combining small elements to make bigger, fancier trees



Complementizers put sentences within sentences


Rule 7: S -> NP VP

Rule 12: VP -> V CP

Rule 13: CP -> C S

### “That allows you to drop a whole new sentence in there!!”

Rule 12: VP -> V CP and Rule 13: CP -> C S


… we can go deeper


… and this combines with everything we’ve been doing …


… and just keeps getting worse …



(Don’t worry, that last one was mostly just me having fun)


Do not be tempted by darkness


Where you attach things changes the meaning!


Be careful where you put your prepositional phrases!






You may think…


… but in reality …


Drawing Trees

### How do you draw phrase structure trees?
- Only Electronically!
- This makes for fewer scanning and legibility issues
- Pros tend to use LaTeX, but that’s fancy
- Or using a tool like http://ironcreek.net/phpsyntaxtree/
- You’ll need to use bracket notation for that
- It’s frustrating at first, but it does the job
- This is a friendly tool https://groverburger.github.io/sapling/

[.S [.NP [.NP [.DET The ] [.N' [.ADJ proud ] [.N' [.N baker ] ] ] ] [.PP [.P from ] [.NP [.N' [.N San Bernadino ] ] ] ] ] [.VP [.V loved ] [.CP [.C that ] [.S [.NP [.N' [.N people ] ] ] [.VP [.V cheered ] [.CP [.C as ] [.S [.NP [.N' [.N Will ] ] ] [.VP [.VP [.V ate ] [.NP [.NP [.DET the ] [.N' [.ADJ massive ] [.N' [.ADJ chocolate ] [.N' [.N cake ] ] ] ] ] [.PP [.P from ][.NP [.DET the ] [.N' [.ADJ new ] [.N' [.N bakery ] ] ] ] ] ] ][.PP [.P with ] [.NP [.DET his ] [.N' [.N wife ] ] ] ] ] ] ] ] ] ] ] ]


I’ve made a video tutorial for creating these trees using jsSyntaxTree

https://www.youtube.com/watch?v=yzr-MAMTK5k


Let’s Practice (if we have time)

“The grumpy polar bears from LA hated the excruciating traffic on the 405.”


“The grumpy polar bears from LA hated the excruciating traffic on the 405.”

Let’s break it down!


The grumpy polar bears



From LA

The grumpy polar bears from LA

The excruciating traffic



On the 405

The excruciating traffic on the 405

hated the excruciating traffic on the 405



“The grumpy polar bears from LA hated the excruciating traffic on the 405.”



For Next Time


Thank you!