Created: 2010-08-15 (Christopher Potts)
Updated: 2010-08-15 (Christopher Potts)

= License = 

The code is released under Eclipse Public License - v 1.0:

http://www.eclipse.org/legal/epl-v10.html

The data and associated paper are released under a Creative Commons
Attribution-Noncommercial-Share Alike 3.0 License:

http://creativecommons.org/licenses/by-nc-sa/3.0/


= Overview =

This directory contains the main word-level data for

  Potts, Christopher. 2010. On the negativity of negation.
  Proceedings of Semantics and Linguistic Theory 20.


= Data = 

The data files are all in CSV format, as described in the paper.
imdb-unigrams.csv and fivestarreviews-unigrams.csv were collected by
the author from the Web. convote-unigrams.csv derives from the
Congressional Speech Data corpus developed by Matt Thomas, Bo Pang,
and Lillian Lee:

http://www.cs.cornell.edu/home/llee/data/convote.html


= R function = 

The file potts-saltPlot.R contains an R function, saltPlot, for
exploring the CSV files. The documentation in the file explains
a bit about what it does.  For beginners with R:

* The function uses the Hmisc and binom packages, which can be
  obtained within R's GUI using its package installer.

* Load potts-saltPlot.R with the command 

source('potts-saltPlot.R')

* And here is are some examples of the function's use:

## Examples: Exclamativity!
imdb = read.csv("imdb-unigrams.csv")        ## load the IMDB file
ep = read.csv("epconfessions-unigrams.csv") ## load the EP file
saltPlot(imdb, "wow")        ## "wow" rocks!
saltPlot(ep, "wow")          
saltPlot(imdb, "ever", 0.3)  ## negation chops off half of "ever"?
