16  Applying Dictionaries

16.1 Objectives

  • The basic idea of counting token and feature matches as equivalence classes
  • Matching phrases
  • Weighting dictionary applications
  • Multi-lingual applications
  • Scaling dictionary results
  • Confidence intervals and bootstrapping
  • Dictionary validation using kwic()
  • Dictionary construction using textstat_keyness()

Creating and revising dictionaries.

  • key-value lists
  • more details on pattern types
  • the phrase() argument
  • importing foreign dictionaries
  • editing dictionaries - using dictionaries as pattern inputs to other functions
  • exporting dictionaries
  • using dictionaries: tokens_lookup()

16.2 Methods

Applicable methods for the objectives listed above.

16.3 Examples

Sentiment analysis.

16.4 Issues

Copyright.

Which format?

Weighted dictionaries.

Additional issues.

16.5 Further Reading

On-line sources of dictionaries.

QI’s quanteda.dictionaries package.

16.6 Exercises

Add some here.