Top Banner
The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center
53

The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

Dec 16, 2015

Download

Documents

Marybeth Day
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

The Technological Relevanceof Natural Language

Pragmatics andSpeech Act Theory

Michael A. Covington

Associate DirectorArtificial Intelligence Center

Page 2: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

Outline

• What is pragmatics?

• What is speech act theory?

• How is this relevant to technology?

Page 3: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

Outline

• What is pragmatics?

• What is speech act theory?

• How is this relevant to technology?

Page 4: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

What is pragmatics?

It’s the study of

how language is used

in specific situations

to communicate.

Page 5: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

What is pragmatics?

Pragmatics is the newest

major area of linguistics,

first widely studied in the 1970s.

Applications are still

being discovered.

Page 6: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

What is pragmatics?

Charles Morris, 1938:

Syntax

Relation of linguistic units to:

Each other

Page 7: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

What is pragmatics?

Charles Morris, 1938:

Syntax

Semantics

Relation of linguistic units to:

Each other

The things they signify

Page 8: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

What is pragmatics?

Charles Morris, 1938:

Syntax

Semantics

Pragmatics

Relation of linguistic units to:

Each other

The things they signify

The people who use them

Page 9: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

What is pragmatics?

Important areas of pragmatics today:

• Discourse structure

• Language in context

• Speech act theory

Page 10: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

Outline

• What is pragmatics?

• What is speech act theory?

• How is this relevant to technology?

Page 11: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

What is speech act theory?

The study of

what we do when we talk:

stating facts,

asking questions,

making requests,

expressing feelings…

Page 12: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

What is speech act theory?

Terms from J. L. Austin,

How to do things with words, 1962:

locution what we say

Page 13: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

What is speech act theory?

Terms from J. L. Austin,

How to do things with words, 1962:

locution what we say

illocution what we intend to

accomplish by saying it

Page 14: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

What is speech act theory?

Terms from J. L. Austin,

How to do things with words, 1962:

locution what we say

illocution what we intend to

accomplish by saying it

perlocution what we actually

accomplish by saying it

Page 15: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

What is speech act theory?

Key fact:

Locution, illocution, and perlocution

can be mismatched.

You do not have to swallow

what people tell you.

Page 16: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

What is speech act theory?John Searle, Speech Acts, 1969:

There are many kinds of illocutions:

• Statements

• Questions

• Requests

• Promises

• … (Some linguists classify > 200 kinds!)

Page 17: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

What is speech act theory?

Key claim of speech act theory:

The F(P) hypothesis

We do not simply communicate facts.

Everything we say is wrapped in an illocution.

Every P is wrapped in an F(…).

Page 18: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

What is speech act theory?

Putting it another way:

We do not perform “Vulcan mind melds.”

We do not simply put information

into each other’s minds.

Page 19: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

What is speech act theory?

No “Vulcan mind melds”…

We must package everything we say

in a speech act.

The hearer must figure out how to take it

(and is not obligated to take it the way we wanted him to).

Page 20: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

What is speech act theory?

The logic of how to interpret speech acts

is called illocutionary logic

(Vanderveken 1991, etc.).

Page 21: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

Outline

• What is pragmatics?

• What is speech act theory?

• How is this relevant to technology?

Page 22: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

Relevant to technology?

Have you noticed how oftencomputers are content toperform “Vulcan mind melds”?

They just transfer data without decoding speech acts.

(Hello, spam and viruses!)

Page 23: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

Relevant to technology?

But in factthe world of computersis full of speech acts.

All we have to dois look for them.

Page 24: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

Relevant to technology?

Examples:

• Windows message boxes

• Network protocols

• E-commerce

• Operating system calls

Page 25: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

Relevant to technology?

Examples:

• Windows message boxes

• Network protocols

• E-commerce

• Operating system calls

Page 26: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

Windows message boxes

Direct speech act: Statement of fact and request for acknowledgment.

User must infer: Go and pick up the printout.

Page 27: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

Windows message boxes

Direct speech act: Yes/no question.

User must figure out what the answer should be.User must answer truthfully.

Page 28: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

Windows message boxes

Direct speech act: Statement of fact. Cryptic request for reply.

User must infer: what on earth this means!

Page 29: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

Relevant to technology?

Examples:

• Windows message boxes

• Network protocols

• E-commerce

• Operating system calls

Page 30: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

Network protocolsExample: Delivering e-mail.

(establish connection)220 wumpus.ai.uga.edu ESMTP Sendmail 8.8.8/8.8.8

Page 31: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

Network protocolsExample: Delivering e-mail.

(establish connection)220 wumpus.ai.uga.edu ESMTP Sendmail 8.8.8/8.8.8EHLO possum.ai.uga.edu250 wumpus.ai.uga.edu Hello possum.ai.uga.edu…

Statement,possibly

insincere

Page 32: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

Network protocolsExample: Delivering e-mail.

(establish connection)220 wumpus.ai.uga.edu ESMTP Sendmail 8.8.8/8.8.8EHLO possum.ai.uga.edu250 wumpus.ai.uga.edu Hello possum.ai.uga.edu…EXPN logicians250 Donald Nute <[email protected]>250 Don Potter <[email protected]>

Statement,possibly

insincere

Request

Page 33: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

Network protocolsExample: Delivering e-mail.

(establish connection)220 wumpus.ai.uga.edu ESMTP Sendmail 8.8.8/8.8.8EHLO possum.ai.uga.edu250 wumpus.ai.uga.edu Hello possum.ai.uga.edu…EXPN logicians250 Donald Nute <[email protected]>250 Don Potter <[email protected]>MAIL FROM: [email protected] RET=HDRS250 [email protected]: sender OK

Statement,possibly

insincere

Request

Statement with implicit request

Page 34: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

Network protocolsExample: Delivering e-mail.

(establish connection)220 wumpus.ai.uga.edu ESMTP Sendmail 8.8.8/8.8.8EHLO possum.ai.uga.edu250 wumpus.ai.uga.edu Hello possum.ai.uga.edu…EXPN logicians250 Donald Nute <[email protected]>250 Don Potter <[email protected]>MAIL FROM: [email protected] RET=HDRS250 [email protected]: sender OKRCPT TO: [email protected] NOTIFY=SUCCESS250 [email protected]: recipient OK

Statement,possibly

insincere

Request

Statement with implicit request

Page 35: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

Network protocolsExample: Delivering e-mail.

(establish connection)220 wumpus.ai.uga.edu ESMTP Sendmail 8.8.8/8.8.8EHLO possum.ai.uga.edu250 wumpus.ai.uga.edu Hello possum.ai.uga.edu…EXPN logicians250 Donald Nute <[email protected]>250 Don Potter <[email protected]>MAIL FROM: [email protected] RET=HDRS250 [email protected]: sender OKRCPT TO: [email protected] NOTIFY=SUCCESS250 [email protected]: recipient OKDATA354 Enter mail, end with “.” on a line by itself…text of message here…250 Message accepted for delivery

Statement,possibly

insincere

Request

Statement with implicit request

Page 36: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

Network protocolsExample: Delivering e-mail.

(establish connection)220 wumpus.ai.uga.edu ESMTP Sendmail 8.8.8/8.8.8EHLO possum.ai.uga.edu250 wumpus.ai.uga.edu Hello possum.ai.uga.edu…EXPN logicians250 Donald Nute <[email protected]>250 Don Potter <[email protected]>MAIL FROM: [email protected] RET=HDRS250 [email protected]: sender OKRCPT TO: [email protected] NOTIFY=SUCCESS250 [email protected]: recipient OKDATA354 Enter mail, end with “.” on a line by itself…text of message here…250 Message accepted for deliveryQUIT221 wumpus.ai.uga.edu closing connection

Statement,possibly

insincere

Request

Statement with implicit request

Request to end conversation

Page 37: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

Network protocols

Note the variety of speech acts involved in network communication,

and the possibility of insincerity.

(A smart hearer has to judge what he hears.)

Many computer security problemscould be attributed toa naïve view of speech acts.

Page 38: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

Relevant to technology?

Examples:

• Windows message boxes

• Network protocols

• E-commerce

• Operating system calls

Page 39: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

E-commerce

By electronic commerceI mean the automatic makingof business deals by computer.

Computers negotiate with each other, find the best deal and make it automatically, and even act as brokers or referrers for each other.

Page 40: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

E-commerce

E-commerce in this sense hasexisted since the 1960s,often with clumsy protocols.

Examples:ANSI X.12UN EDIFACT

Even if clumsy, they are a boon tocountries that do not speak a majorworld language.

Page 41: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

E-commerce

Older E-commerce protocolsdo not take speech acts into account.

X.12 has a different “form” forevery type of transaction(over 800 of them),each with its own syntax.

Page 42: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

E-commerce

KQML

(Knowledge Query Manipulation Language)(T. Finin et al., mid-1990s)

is a speech-act-basedlanguage for electronic commerce.

(XML is not. XML is merely a syntax for data.)

Page 43: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

E-commerce

Some KQML speech-act types:

Informatives: tell, deny, untell (retract)Database performatives: insert, delete, delete-one, delete-allQuery performatives: ask-if, ask-about, ask-one, ask-all…Responses: error (I can’t understand you), sorry (can’t do it), eos (end of stream)

Page 44: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

E-commerce

In conversations about databases,another prominent issue ishow to deal with multiple answers.

Deliver them all at once in a list,or as a series of individual statements,or one at a time as requested…

These options turn up in several placesin KQML.

Page 45: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

Relevant to technology?

Examples:

• Windows message boxes

• Network protocols

• E-commerce

• Operating system calls

Page 46: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

Operating system calls

Even a computer program

talking to the OS

has a repertoire of

speech act types.

Page 47: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

Operating system calls

Moore (Decision Support Systems,

1998) found a variety of speech

act types in AppleEvents

(MacOS).

Page 48: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

Operating system calls

In any modern operating system, system calls can:

• State facts to the OS

• Ask questions of the OS

• Give commands to the OS

• Make requests of the OS (which the OS can turn

down)

• Make promises to the OS (by providing a callback

method)

Typically the programming language takes little or no

notice of the difference between these.

Page 49: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

Relevant to technology?

So what should we do next?

Page 50: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

Relevant to technology?

So what should we do next?

What I’ve just given you is

not a state-of-the-art report

but rather an indication of

where to explore.

Page 51: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

Relevant to technology?

Anything that involves

communication

and intelligent agents

is going to involve

pragmatics.

Look for it!

Page 52: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

Some references(where more references can be found)

Levinson, S., Pragmatics (Cambridge U. Press, 1983)

Mey, J., Pragmatics: An Introduction (Blackwell, 2001)

Searle, J. R., Speech Acts (Cambridge U. Press, 1969)

Covington, M. A., “Speech acts, electronic commerce, and KQML,” Decision Support Systems 22 (1998) 203-211

Finin, T., et al., http://www.cs.umbc.edu/kqml/

Moore, S., “Categorizing automated messages,” Decision Support Systems 22 (1998) 213-241

Page 53: The Technological Relevance of Natural Language Pragmatics and Speech Act Theory Michael A. Covington Associate Director Artificial Intelligence Center.

Any questions?