98
Affect, Crea+vity, and Humor: Computa+onal Challenges Alessandro Valitu< University College Dublin Invited Talk at the Department of Computer Science, University of Bari “A. Moro” 25 May 2016

Affect creativity-humor

Embed Size (px)

Citation preview

Page 1: Affect creativity-humor

Affect,Crea+vity,andHumor:Computa+onalChallenges

AlessandroValitu<UniversityCollegeDublin

InvitedTalkattheDepartmentofComputerScience,UniversityofBari“A.Moro”25May2016

Page 2: Affect creativity-humor

AbstractThelastdecadehasseentheemergenceofnewresearchareascalled"affec+vecompu+ng","computa+onalcrea+vity",and"computa+onalhumor".Theautomatedrecogni+onofsen+mentsandopinionshasbecomeastabletrackofthetopAr+ficialIntelligenceconferences.Agrowingnumberofinterna+onalprojectsarefocusingontheimplementa+onofformsofcrea+vity.Morerecently,theideaofbuildingcomputerprogramscapableofrecognizingandgenera+nghumorisnotconsideredunachievableasinthepast.Inthistalk,Iwillgiveasummaryofmyexperienceinthesenewareasofcomputerscience.Morespecifically,Iamgoingtodescribesomeoftheideas,resources,andmethodsdevelopedduringmyresearchac+vity.

Page 3: Affect creativity-humor

OutlineAffect:•  Affec+velexicalresources:WordNet-Affect•  LatentSeman+cAnalysisforaffectrecogni+on:Affec+veWeight•  Affec+vetextanima+onCrea+vity:•  Computa+onalCrea+vityareas•  Crea+veSystems•  DynamicalsystemsandbasinjumpingHumor:Computa+onalhumorgenera+onHumorousvaria+onoffamiliarexpressionsLexicalreplacementhumor

Page 4: Affect creativity-humor
Page 5: Affect creativity-humor

WordNet-Affect•  WordNetisanon-linelexicalreferencesystemwhosedesignisinspiredbypsycholinguis,ctheoriesofhumanlexicalmemory

•  Englishnouns,verbs,adjec+vesandadverbsareorganizedintosynonymsets(synsets),eachrepresen+nganunderlyinglexicalconcept

•  InWordNet-Affectwehaveanaddi+onalhierarchyofaffec,vedomainlabels

Page 6: Affect creativity-humor

A-LabelsandsomeexamplesA-Label Examples of Synsets

EMOTION noun "anger#1", verb "fear#1"

MOOD noun "animosity#1", adjective "amiable#1"

TRAIT noun "aggressiveness#1", adjective "competitive#1"

COGNITIVE STATE noun "confusion#2", adjective "dazed#2"

PHYSICAL STATE noun "illness#1", adjective "all_in#1"

HEDONIC SIGNAL noun "hurt#3", noun "suffering#4"

EMOTION-ELICITING SITUATION noun "awkwardness#3", adjective "out_of_danger#1"

EMOTIONAL RESPONSE noun "cold_sweat#1", verb "tremble#2"

BEHAVIOUR noun "offense#1", adjective "inhibited#1"

ATTITUDE noun "intolerance#1", noun "defensive#1"

SENSATION noun "coldness#1", verb "feel#3"

Freely available (for research purposes) athttp://wndomains.itc.it

Page 7: Affect creativity-humor

Valencetagging

•  Dis+nguishingsynsetsaccordingtoemo+onalvalence

•  Posi,veemo+ons(joy#1,enthusiasm#1),•  Nega,veemo+ons(fear#1,horror#1),•  Ambiguous,whenthevalencedependsonthecontext(surprise#1),

•  Neutral,whenthesynsetisconsideredaffec+vebutnotcharacterizedbyvalence(indifference#1)

Page 8: Affect creativity-humor

Affec+veHierarchy(Screenshots)

Page 9: Affect creativity-humor
Page 10: Affect creativity-humor
Page 11: Affect creativity-humor
Page 12: Affect creativity-humor
Page 13: Affect creativity-humor

Affec+veWeight

1.  WordNet-Affectprovidestherepresenta+onofdirectaffec,vewords

2.  LatentSeman+cAnalysis(LSA)givesameasureofthesimilaritybetweendirectaffec+vetermsandindirectaffec,vewords

Page 14: Affect creativity-humor

LSAspaced3

d1

d2

synset = w1+ w2 + w3

term = w1

§ Similarity: cosine among vectors

Page 15: Affect creativity-humor

Anexample:universityRelated emotional terms Positive emotional category

university Enthusiasm

professor Sympathy

scholarship Devotion

achievement Encouragement

Related emotional terms Negative emotional category

university Downheartedness

professor Antipathy

study Isolation

scholarship Melancholy

Page 16: Affect creativity-humor

Affec+veweightofnews+tles

•  Weanalyzedthewordscontainedineachsentence,andextractthewordwithhigheraffec+veweight

News titles (Google-news) Emotion Word with highest affective weight

Review: `King Kong’ a giant pleasure Joy pleasure#n

Romania: helicopter crash kills four people Fear crash#v

Record sales suffer steep decline Sadness suffer#v

Dead whale in Greenpeace protest Anger protest#v

Page 17: Affect creativity-humor

Textanima+on(1)

•  Kine,ctypography:textsthatusemovementsorotherperceptualchangesover+me

•  Itaddsafurthercommunica+vedimensiontosimpletext

•  Wewanttoexploitalinkbetweenlexicalseman+csoftextsandsomekine+cproper+esforanima+ngthem

Page 18: Affect creativity-humor

Textanima+on(2)

•  Weusedasastar+ngpointthekine,ctypographyengine[Leeetal.2002]

•  Webuiltadevelopmentenvironmentandascrip,nglanguagefordynamicalcrea+onoftextanima+ons

•  Composing(e.g.joining,addinginparallel,…)elementaryanima+onsasbuildingblocks

•  Elementaryanima+ons:linear,oscillate,pulse,jitter,etc.

Page 19: Affect creativity-humor

Kine+cbehavior:e.g.“anger”

We annotated each emotion category in Wordnet-affect with an appropriate kinetic behavior

Page 20: Affect creativity-humor

Emo+onalkine+cbehaviors

•  E.g.Imita+nghumanresponses

•  Joy:asequenceofhops•  Fear:palpita+ons•  Anger:strongtrembleandblush•  Surprise:suddenswellingoftext•  Sadness:textdefla+onandsquashing

Page 21: Affect creativity-humor

Affec+veTextAnima+onü  Newsheadlines(takenformGoogle-News)

•  Twomainsteps:(i)emo+onrecogni+onand(ii)kine+canima+onassembling

1.  Recognizetheemo+onalcategoryoftheheadline2.  Markthewordsthatareclosertothatemo+on3.  Assigntheproperaffec+veanima+ontoeachword4.  Assembleacomprehensiveanima+onscript,anddisplaythe

animated+tle

Page 22: Affect creativity-humor
Page 23: Affect creativity-humor

IronyDefini+onTheterm"irony"canrefertodifferentconcepts:•  Situa+onalirony:situa+oncharacterizedbycontrastbetween

realityandhumanidealsorinten+ons(alsocalled"ironyofthefate").

•  Verbalirony:isarhetoricaldeviceinwhichtheintendedmeaningofstatementsisdifferentfrom(andtypicallyoppositeof)theliteralmeaning.Whatissaidisoppositeofwhatismeant.

•  Ifonelooksoutofhiswindowatarainstormandremarkstoafriend,"Gloriousday,isn'tit?"thecontradic+onbetweenthefactsandtheimplieddescrip+onisaformofverbalirony.

•  Seman+ccontrastcanbeemployedinbothtypesofirony.Wefocusonverbalirony.

•  Polarity-based(verbal)irony:Thepolarityofwhatissaidisoppositetothepolarityofwhatismeant.["glorious"->"miserable”]

Page 24: Affect creativity-humor

Irony

ConceptualCrea+vity Linguis+cCrea+vity

Situa+onalIrony VerbalIrony

Polarityopposi+onasaseman+cdeviceforbothconceptualandlinguis+ccrea+vity

Page 25: Affect creativity-humor

ResearchQues+ons

•  Towhatextentisitpossibletogenerateverbalironyautoma+cally?

•  Howcanweevaluateverbalironyofcomputer-generatedsentencesusingacrowdsourcingsystem?

•  Towhatdegreeseman+ccontrastusedinsitua+onalironyisalsocapabletoachieveverbalirony?

Page 26: Affect creativity-humor

@MetaphorMagnet(1)•  ItisaTwioerbot@MetaphorMagnet,whichusesastoreofknowledgetocreatetweetsthataremeanttobemeaningful(Veale2014).

•  Thesystemcangeneratearichrangeofcrea+vestatements,whichareregularlypostedonTwioer.

Example:Rememberwhenpeacewasencouragedbynonviolentpeacemakers?Now,peaceisavictoryenjoyedonlybyconqueringvictors.

Page 27: Affect creativity-humor

@MetaphorMagnet(2)

Page 28: Affect creativity-humor

@MetaphorMagnet(3)Asubsetsofthetweetpaoernsaredesignedtobeinten+onallyironic.#Irony:Whensomesovereignslivein"magnificent"palacesthewayrappersliveinwretchedgheoos.#Sovereign=#Rapper#Palace=#Gheoo#Irony:Thinkersformula+ngpromisingideasaboutfu+lefantasy.#Promising=#Fu+le#IdeaAboutFantasy#Irony:Themostdignifiedstatesmanisnotmorecelebratedthanthemostunprofessionalblogger.#Statesman=#Blogger

Page 29: Affect creativity-humor

IronyFactors,IronyMarkers,Echo

Therearethreemainbuildingblocks:1.  Seman+cContent:IronyFactors2.  Pragma+ccues:IronyMarkers3.  Background(i.e.contextual)knowledge:

EchoedInforma+on

#Irony:Thinkersformula+ngpromisingideasaboutfu+lefantasy.#Promising=#Fu+le#IdeaAboutFantasy

Page 30: Affect creativity-humor

IronyFactors,IronyMarkers,Echo

Therearethreemainbuildingblocks:1.  Seman+cContent:IronyFactors2.  Pragma+ccues:IronyMarkers3.  Background(i.e.contextual)knowledge:

EchoedInforma+on

#Irony:Thinkersformula+ngpromisingideasaboutfu+lefantasy.

Page 31: Affect creativity-humor

IronyFactors,IronyMarkers,Echo

Therearethreemainbuildingblocks:1.  Seman+cContent:IronyFactors2.  Pragma+ccues:IronyMarkers3.  Background(i.e.contextual)knowledge:

EchoedInforma+on

#Irony:Thinkersformula+ngpromisingideasaboutfu+lefantasy.

Page 32: Affect creativity-humor

IronyFactors,IronyMarkers,Echo

Therearethreemainbuildingblocks:1.  Seman+cContent:IronyFactors2.  Pragma+ccues:IronyMarkers3.  Background(i.e.contextual)knowledge:

EchoedInforma+on

#Irony:Thinkersformula+ngpromisingideasaboutfu+lefantasy.

Page 33: Affect creativity-humor

IronyFactors,IronyMarkers,Echo

Therearethreemainbuildingblocks:1.  Seman+cContent:IronyFactors2.  Pragma+ccues:IronyMarkers3.  Background(i.e.contextual)knowledge:

EchoedInforma+on

#Irony:Thinkersformula+ngpromisingideasaboutfu+lefantasy. (E.g.,arerapoli+calspeech)

Page 34: Affect creativity-humor

Evalua+onofAutoma+c(Verbal)Irony•  Wecanuseaironygeneratorasatestbedforthegenera+onofrandomizedsamples.

•  Eachexperimentalse<ngcorrespondstodifferentcombina+onsoflinguis+cfeatures.

•  Therefore,wecanusethesystemtostudythecontribu+onofspecificlinguis+cfeaturestothepercep+onofirony.

•  Ontheotherhand,ifthelinguis+cfeaturescanbecontrolledbygenera+veparameters,theevalua+onisnotonlyabouttheironyoftextsbutalsoaboutthesystemcapabilitytogenerateironictexts.

•  Exampleoflinguis+cproper+esthatcannotbecontrolledbygenera+veparameters:sen+mentofthewholesentence.

Page 35: Affect creativity-humor

ExperimentalSe<ngs

BASE Thevegetablesaremixedinhealthfulsalads.

QUOT Thevegetablesthataremixedin“healthful”salads.

HASH #Irony:Thevegetablesaremixedinhealthfulsalads.

QUOT+COMP Thevegetablesthataremixedin“healthful”saladsaretreatedwithpoisonouspes,cides.

QUOT+HASH #Irony:Thevegetablesthataremixedin“healthful”saladsaretreatedwithpoisonouspes,cides.

Page 36: Affect creativity-humor
Page 37: Affect creativity-humor

Computa+onalCrea+vityAreasResearchArea Crea+veSystem

crea+vitystudies:computa+onalmodellingofhumancrea+vity

humans

machinecrea+vity computerprogram:artefactsgenerator

computer-supportedcrea+vity

computer-program+user

Page 38: Affect creativity-humor

Essen+alProper+es

(Ritchie2007,pp.72-73):

1.  Typicality:Howmuchtheartefactisanexampleofagivengenre

2.  Novelty:howmuchtheartefactisdissimilartoexis+ngexamplesofitsgenre

3.  Quality[=Value]

•  Typicalitycanbeusedtoevaluate“weakcrea+vity”•  Allthreeproper+escanbeusedtoevaluate“strong

crea+vity”

Page 39: Affect creativity-humor

Creative Systems

(Wiggins2006):•  Theconceptualspaceisasetofartefacts(inBoden’sterms,concepts)whichareinsomequasi-syntac+csensedeemedtobeacceptableasexamplesofwhateverisbeingcreated.Implicitly,theconceptualspacemayincludepar+allydefinedartefactstoo.

•  Exploratorycrea-vityistheprocessofexploringagivenconceptualspace

39ICCBR-1528September2015

Page 40: Affect creativity-humor

Creative Systems

40ICCBR-1528September2015

(Ritchie2007):

•  setofbasicitemsB=datatypes(e.g.stringofwords,arraysofpixels)characterisingtheartefactsproducedbytheprogram

•  setofresultsR=setofartefactsproducedbytheprogramwithaspecificsetofse<ngparameters

•  inspiringsetI:Theconstruc+onoftheprogramisinfluenced(eitherexplicitlyorimplicitly)bysomesubsetoftheavailablebasicitems.Thissubset,whichwewillcalltheinspiringset,couldbealltherelevantartefactsknowntotheprogramdesigner,oritemswhichtheprogramisdesignedtoreplicate,oraknowledgebaseofknownexampleswhichdrivesthecomputa+onwithintheprogram.

Page 41: Affect creativity-humor

Inspiringset(Ritchie2007,pp.76)

Defini+on:“Theinspiringsetisthesetincluding]alltherelevantartefactsknowntotheprogramdesigner,oritemswhichtheprogramisdesignedtoreplicate,oraknowledgebaseofknownexampleswhichdrivesthecomputa+onwithintheprogram.”

•  Whyisitusefultointroducetheinspiringset?Wecouldsaythataprogramismorecrea+veifdoesnotreplicate(orcloselyimitate)theinstanceswhichguideditsdesign.

Page 42: Affect creativity-humor

B

Setofbasicitems

Page 43: Affect creativity-humor

B

I

Inspiringset

Page 44: Affect creativity-humor

B

I

Setofresults

R

Page 45: Affect creativity-humor

B

IR

TypicalartefactsTα,1(R)={x∈R|α≤typ(X)≤1}

Tα,1(R)

Page 46: Affect creativity-humor

B

IR

ValuableartefactsVγ,1(R)={x∈R|γ≤val(X)≤1}

Vγ,1(R)

Page 47: Affect creativity-humor

B

IR

TypicalandvaluableartefactsVγ,1(R)∩Tα,1(R)

Vγ,1(R)∩Tα,1(R)

Page 48: Affect creativity-humor

Crea+veSystemsasDynamicalSystems

•  Aconceptualspaceofacrea+vesystemcanbedecomposedinseveralregionscalled“basinsofaorac+ons”,eachassociatedtoaspecifictypeofartefacts.

•  Weproposetwoformsofsimilaritybetweenartefacts,accordingtotypicality(t-similarity)andvalue(v-similarity).

48ICCBR-1528September2015

Page 49: Affect creativity-humor

The Fractal Tree

49ICCBR-1528September2015

Page 50: Affect creativity-humor

28September2015 ICCBR-15 50

Page 51: Affect creativity-humor

TheFractalTree

28September2015 ICCBR-15 51

Page 52: Affect creativity-humor

28September2015 ICCBR-15 52

Page 53: Affect creativity-humor

28September2015 ICCBR-15 53

Page 54: Affect creativity-humor

28September2015 ICCBR-15 54

Page 55: Affect creativity-humor

28September2015 ICCBR-15 55

Page 56: Affect creativity-humor

28September2015 ICCBR-15 56

Page 57: Affect creativity-humor

28September2015 ICCBR-15 57

Page 58: Affect creativity-humor

28September2015 ICCBR-15 58

Page 59: Affect creativity-humor

28September2015 ICCBR-15 59

Page 60: Affect creativity-humor

28September2015 ICCBR-15 60

Page 61: Affect creativity-humor

28September2015 ICCBR-15 61

Page 62: Affect creativity-humor

28September2015 ICCBR-15 62

Page 63: Affect creativity-humor

28September2015 ICCBR-15 63

Page 64: Affect creativity-humor

28September2015 ICCBR-15 64

Page 65: Affect creativity-humor

28September2015 ICCBR-15 65

Page 66: Affect creativity-humor

28September2015 ICCBR-15 66

Page 67: Affect creativity-humor

28September2015 ICCBR-15 67

Page 68: Affect creativity-humor

28September2015 ICCBR-15 68

Page 69: Affect creativity-humor

28September2015 ICCBR-15 69

Page 70: Affect creativity-humor

28September2015 ICCBR-15 70

Page 71: Affect creativity-humor

28September2015 ICCBR-15 71

Page 72: Affect creativity-humor

28September2015 ICCBR-15 72

Page 73: Affect creativity-humor

Paths and Attractors

Whatisapathinthe“squareoffractaltrees”?1.  Asearchintheconceptualspaceofacrea+vesystem2.  Atrajectoryinthephasespaceofadynamical

systemAnaQractorisasetofstates(i.e.,elementsofthestatespaceofadynamicalsystem)towardswhichasetofdynamicalpathstendtoevolve.Thesetofdynamicalpathspoin+ngtotheaoractoriscalledbasinofaQrac+on.

73ICCBR-1528September2015

Page 74: Affect creativity-humor

Basin Jumping and Creativity

•  Theconceptualspacecanbedecomposedinbasinsofaorac+on.•  Star+ngfromasetofpastexamples(inspira+onset),acrea+ve

systemcanreachfromwhichaspecificbasinofaorac+oncanbeexplored.

•  “ClassicCBR”allowsacrea+vesystemtoexplorethebasinofaorac+oncontainingthesetofpastexamples(assumedtobetheinspira+onset)

•  “Crea+veCBR”shouldallowsacrea+vesystemtoreachbasinofaorac+onsnotcontainingthepastexamples

•  Insummary,ifweassumethecrea+vityasasearchintheconceptualspace,ahigherdegreeofcrea+vityisassociatedtothesearchofnewbasinsofaorac+on(basinjumping).

74ICCBR-1528September2015

Page 75: Affect creativity-humor

Double Similarity

•  CBRisbasedonthecapabilitytorecognizeanewcaseassimilartooneofthepastcases

•  Crea+veCBRshouldemploytwoformsofsimilarity:–  T-Similarity:degreetowhichtwoartefactsarerecognisedasbelongingtothesametype

–  V-Similarity:degreetowhichthevalueoftwoartefactsisrecognisedassimilar

•  T-similarityallowsthesystemtoexplorethecurrentbasinofaorac+on

•  V-similarityallowsthesystemtoreachdifferentbasinsofaorac+on

75ICCBR-1528September2015

Page 76: Affect creativity-humor

Humour

Page 77: Affect creativity-humor

•  Defini+on:Capabilitytointen+onallyinduce–  mirth–  laughter–  smile

•  Mirthinduc+onisperformedthroughlanguage

emotion

cognition

language

(VerbalInten+onal)Humor

Page 78: Affect creativity-humor

HumorinComputers(2)

Page 79: Affect creativity-humor

Computa+onalHumor

•  Itisaresearcharealyingattheintersec+onbetweenComputa+onalLinguis+csandAr+ficialIntelligence.

•  Itmainlyaimsattheimplementa+onoftoolsabletogenerateandrecognizehumorautoma+cally,butalsocancontributetothestudyofhumorthroughcomputa+onalmodels.

•  Prototypesdevelopedsofarareverylimited,ifcomparedtothehumancapabilitytounderstandandproducehumor.Inmostcases,theyareabletoproducespecifictypesofhumoroustexts(e.g.shortjokesorpunsbasedonwordplays).

Page 80: Affect creativity-humor

Computa+onalHumorGenera+onExamplesofoutputsfromhumorgenerators:•  Ritchie,Binsted

o  linguis+canalysisofjokes[2004]o  punningriddle[BinstedandRitchie,1994]o  e.g.:“Whatdoyoucallamurdererwithfibre?Acerealkiller.”

•  Stock,Strapparavao  largescalelexicalresources,seman+crela+ons,crea+vevaria+onso  funnyhacronyms[2003]o  e.g.:“MIT=MythicalIns+tuteofTheology”

•  Nijholt,Tinholto  humorousagents:interac+on,appropriatedness,humorousactso  anaphoricalpuns[2004]o  e.g.:“MaryaskedSusanaques+on,andshegavetheanswer”“Did

Marygivetheanswer?”

Page 81: Affect creativity-humor

FamiliarExpressionsVaria+on

•  Wordsubs+tu+ononfamiliarexpressions(e.g.,proverbs,movie+tles,etc.)

•  Twowordsgivenasinput:atopicword(e.g.‘holidays’,‘food’,etc.)andanemo+onword(e.g.‘joy’,‘fear’)

•  Searchofpossiblecandidatewordsforthesubs+tu+on(inalistofEnglishwords):o  wordphone+callysimilartosomewordinatleastone

familiarexpressiono  wordseman+callyrelatedtothetopicwordandthe

emo+onword

(Valitu<etal.2008):

Page 82: Affect creativity-humor

Examples

(‘crash’,‘fear)SaturdayFrightFever

(‘surgery’,‘fear’)BacktotheSuture

(‘den+st’,‘fear’)FatalExtrac+on

(‘beach’,‘joy’)TomorrowisanotherBay

Page 83: Affect creativity-humor

StepbyStepExample

surgery

BacktotheSuture

futuresuturejurassicthoracic

aorac+onextrac+on

symptomtherapy

metabolismanalgesicextrac+onthoracicsuture

futureJurassic

abstrac+onaorac+oncontrac+ondiffrac+ondistrac+oninac+onreac+onretrac+onsubtrac+ontransac+on

fear

Page 84: Affect creativity-humor

MovieTitlesandTabooWords

Page 85: Affect creativity-humor

JAPE:Genera+onofHumorousPunningRiddlesExamplebyGraemeRitchie(2004)

Choosetwowordsthatsoundsthesame

What do you call a ?

! A

(Anadjec+ve) (Anoun)

meansroughlythesameas

meansroughlythesameas

Page 86: Affect creativity-humor

Choosetwowordsthatsoundsthesame

What do you call a ?

! A

meansroughlythesameas

meansroughlythesameas

bare bear

naked teddy

bare bear

JAPE:Genera+onofHumorousPunningRiddlesExamplebyGraemeRitchie(2004)

Page 87: Affect creativity-humor

Choosetwowordsthatsoundsthesame

What do you call a ?

! A

meansroughlythesameas

meansroughlythesameas

bizarre

bazaar

market strange

bizarre

bazaar

JAPE:Genera+onofHumorousPunningRiddlesExamplebyGraemeRitchie(2004)

Page 88: Affect creativity-humor

Humorgenera+onbylexicalreplacement

(Valitu<etal.2013)

•  ResearchQues+on:towhatextentacomputerprogramcantransformagenericshorttextasinputandmakeithumorouswithasinglewordsubs+tu+on?

•  Keyelements:

o  automatedgenera+onofhumorousexpressionsbylexicalreplacement.

o  AdultHumor

o  Useoftaboowordsasawaytointroducefunnyinappropriateness

Page 89: Affect creativity-humor

ExamplesfromDamnYouAutocorrect.com

Page 90: Affect creativity-humor

Correooreautoma+co

Page 91: Affect creativity-humor

Humorgenera+onprocedureHumorgenera+onbylexicalreplacement:1.  TheproceduregetsasinputasegmentofEnglishtext

(e.g.:“Leteverythingturnwellinyourlife!”).2.  Thenitperformsasinglewordsubs+tu+on(e.g:‘life’

replacedwith‘wife’)andreturnstheresul+ngtext.3.  Tomakeitfunny,thewordsubs+tu+onisperformed

accordingtoanumberoflexicalconstraints:formconstraints,tabooconstraint,andcontextualconstraints.

4.  Addi+onally,thetextcanbeappendedwithaphrasesuchas“Imean‘life’not‘wife’}”.

Page 92: Affect creativity-humor

FormalconstraintsTheoriginalwordanditssubs+tutearesimilarinform:•  Orthographicsimilarity:twowordsareconsidered

orthographicallysimilarifonewordisobtainedwithasinglecharacterdele+on,addi+on,orreplacementfromtheotherone

•  Phone+csimilarity:Wecalltwowordsphone+callysimilariftheirphone+ctranscrip+onisorthographicallysimilaraccordingtotheabovedefini+on

•  Rhyme:Twowordsrhymeiftheyhavesameposi+onsoftonicaccent,andiftheyarephone+callyiden+calfromthemoststressedsyllabletotheendoftheword

Page 93: Affect creativity-humor

TabooconstraintsThesubs+tutewordisatabooword:

•  Taboowordsarewordsnormallyavoidedineverydayconversa+onsbecauseperceivedasinappropriate

•  Theycanrefertobodyproducts,bodyparts,sexualacts,ethnicorracialinsults,profanity,vulgarity,etc.

•  Wecollectedalistof700taboowordsasunionofthreesubsets:

o  Wordsmanuallyselectedfromanavailablelistofwordsreferringtotheseman+cdomain“sexuality”

o  Profani+esandslangterms

o  Wordsfromexamplesofhumorousautocorrect

Page 94: Affect creativity-humor

ContextualconstraintsThesubs+tu+ontakesplaceattheendofthetext,andina

locallycoherentmanner•  Localcoherence=thesubs+tutewordformsafeasible

phrasewithitsimmediatepredecessor,inordertoexpandthetaboomeaningtothephraselevel

•  Theseman+ccontrastisassumedstrongerifthetaboowordcomesasasurpriseintheendofaseeminglyinnocenttext.

•  Localcoherenceisimplementedusingn-grams.Weusedthe2012GoogleBooksn-gramscollec+on

Page 95: Affect creativity-humor

ExamplesofoutputsExperimentalcondi+on Output

FORM Ohoh...Denmuzchangeplatliao...Gobackhaveyanjiuagain...Not'plat'...'plan'.

FORM Josaskifuwanameltup?'meet'not'melt'!

FORM+TABOO Gotcaughtintherain.Waitedhalfnhourinthebussstop.Not'buss'...'bus'!

TABOO Heypple...$700or$900for5nights...Excellentmasturba+onwifbreakfasthamper!!!SorryImean'loca+on'

FORM+TABOO+CONT Nope...Juzofffromberk...SorryImean'work'

FORM+TABOO+CONT I'vesentyoumyfart...Imean'part'not'fart'...

Page 96: Affect creativity-humor

ConclusiveKeywords•  NLrecogni+onvs.NLgenera+on•  Interdisciplinarity•  Lexicalresourcesandlexicalvectorspaces•  Conceptualspacesandexploratorycrea+vity•  Evalua+onofnoveltasksandhypothesistes+ng•  Focusonsubjec+veresponse•  Crea+vereuse•  Interac+vity•  Mul+modality

Page 97: Affect creativity-humor

LexicalResources

LexicalVectorSpaces

ConceptualSpaces

SpacesofSubjec+veResponse

Page 98: Affect creativity-humor

ReferencesAffec+veNLP:•  A.Valitu<,C.Strapparava,andO.Stock.“DevelopingAffec+veLexicalResources”.PublishedinPsychNology

Journal,ISSN1720-7525,2(1):61-83,2004.•  C.StrapparavaandA.Valitu<.“WordNet-Affect:anAffec+veExtensionofWordNet”.AcceptedattheFourth

Interna+onalConferenceonLanguageResourcesandEvalua+on(LREC2004).May26-28,Lisbon,2004.•  A.Valitu<andC.Strapparava.“InterfacingWordNet-AffectwithOCCmodelofemo+ons”.AcceptedattheThird

Interna+onalWorkshoponEMOTION2010-CorporaforresearchonEmo+onandAffect,pp.16-19,May23,2010,Valleoa,Malta.

•  A.Valitu<andT.Veale.InducinganIronicEffectinAutomatedTweets.Acceptedatthe6thInterna+onalConferenceonAffec+veCompu+ngandIntelligentInterac+on(ACII2015),Xi'an,China,pp.153-159,September21-24,2015.

Computa+onalCrea+vity:•  A.Valitu<,C.Strapparava,andO.Stock.“TextualAffectSensingforComputa+onalAdver+sing”.Acceptedatthe

AAAISpringSymposiumonCrea+veIntelligentSystems,March26-28,2008,StanfordUniversity,PaloAlto,California.

•  AlessandroValitu<.Crea+veSystemsasDynamicalSystems.AcceptedattheWorkshoponExperienceandCrea+vity(ICCBR-2015),pp.146-150,FrankfurtamMain,Germany,28September2015.

Computa+onalHumor:•  A.Valitu<.“HowManyJokesareReallyFunny?TowardsaNewApproachtotheEvalua+onofComputa+onal

HumourGenerators”.8thInterna+onalWorkshoponNaturalLanguageProcessingandCogni+veScience(NLPCS2011),2011..

•  A.Valitu<,H.Toivonen,A.Doucet,andJ.M.Toivanen."LetEverythingTurnWellinYourWife":Genera+onofAdultHumorUsingLexicalConstraints.ACL2013.

•  A.Valitu<,A.Doucet,J.M.Toivanen,andH.Toivonen(2015).Computa+onalGenera+onandDissec+onofLexicalReplacementHumor.NaturalLanguageEngineering.

•  AValitu<andT.Veale.InfusingHumorinUnexpectedEvents.HCIInterna+onal2016,Toronto.