startthat.work home

MM-09 Sentiment analysis (polarity detection; opinion mining; affect lexicon)

Score text as positive, negative or neutral, or by emotion, and produce scores per document with aggregates by group or period.

Measure and modelEvidence: DocumentedPrimary technique, runs in step 5.3Strongest statement: describe

What it does

Scores text as positive, negative or neutral, or by emotion. Artefact: scores per document and aggregates by group or period. Read the distribution and a sample of high and low scores.

When to use it

Use when tone or emotion in text is itself the quantity you want to compare across groups or periods.

When it does not fit

Fits when tone is the quantity of interest. Misfit: controlled language in policy documents and filings, or negation and sarcasm that reverse a score. Off-the-shelf lexicons need validation in the domain.

Result format

The result has a sentiment score for each document and aggregates by group or period. It shows the distribution of scores and a sample of high-scoring and low-scoring documents.

Requirements on the material

PropertyRequirement typeRequirement
StructureApplies in some casesrequires=unstructured; requires=semi-structured
Content typeAlways appliesrequires=text
Unit of analysisAlways appliesrequires=document
Appraises source credibilityApplies in some casesno

Not restricted on: Variable types, Time structure, How the sample was chosen, Level of detail available, Number of sources, Whether sources can be joined, Amount of material, Known data problems, Producer interest, Source dependence, Origin, Document genre, Language, Personal information, Security classification, Licence.

Minimum materialenough documents per group or period to compare a distribution, usually 30 or more
Additional sources needednone
Not for (rules)document_genre=legal or regulatory text|government or agency report :: controlled language in policy documents and filings gives uninformative tone scores
Not for (text)Wrong choice when negation or sarcasm reverses scores, or when tone is being read as position. Off-the-shelf word lists need validation in the domain.

Choosing and ordering

Kind of techniquePrimary technique, runs in step 5.3
Phase taganalyse
Other phase tagsnone
Kind of findingdifference; trend
Question answeredhow much
Strongest statement it supportsdescribe
Needs as input
Makes as output
Must exist firstNone
Loop targetproceed with limit stated

Library checks by stakes

Each stakes level includes the checks of the level below it. Checks that need a person apply at high stakes only, so the process leaves them out at lower stakes (decision 38). Repeatability: repeatable with fixed settings.

StakesCheckPerson involvedCounts as a different method
exploratoryspot checkoptionalno
decision-informingspot checkoptionalno
decision-informinggold standard agreementconditional; left out below high stakesno
high-stakesspot checkoptionalno
high-stakesgold standard agreementconditionalno
high-stakessecond technique with different assumptionsnoneconditional
high-stakesindependent reviewneededno

Failure modes and limits

Model suitabilitymodel plus code
Typical model failureReports tone as if it were position.
Error sourcesinput data; data transformation; statistical assumptions
Certainty limitsCertainty drops when the lexicon or model was built for another domain (indirectness) and when scores are not checked against human ratings (risk of bias).

Evidence and tag basis

Documented. A text can be negative in wording and still support its target. (Mohammad et al. 2016, arXiv 1605.01655; Grimmer and Stewart 2013, Political Analysis)

Tag basis: input profile inference; selection inference; sequencing inference; robustness inference. All tag values are inference unless a source is named.