This package provides a wrapper for two functions contained in Lexicoder to function exclusively in an R environment.
Lexicoder is a useful text analysis tool produced by Soroka, Young and Daku http://www.lexicoder.com. To make it as user-friendly as possible, it is built to run with Java. In addition to basic text processing functions which many other text analysis software include, it also includes three dictionaries to improve sentiment analysis, particularly for the analysis of political news. It provides a dictionary of non-tonal words and their replacements (check this), a dictionary of negative terms and their replacements designed to ensure that “not happy” is not counted as a positive word because of “happy” and positive and negative sentiment dictionaries that include wildcard characters to ensure that all are. Because other R packages such as the tm package https://cran.r-project.org/web/packages/tm/index.html offer important functionality in the R environment that Lexicoder either does not offer or offers outside of R, the package author noted a gap. this package enables R users to to apply the pre-processing and sentiment analyses functions developed in Lexicoder exclusively within the R environment.
Simon J. Kiss
Maintainer: skiss@wlu.ca
datasets
Test
~~ <pkg>
~~
#load the dictionary of non-tonal terms and replacements
data('dict')
#load the dictionary of negations and replacements
data('neg')
#load the 'crude' data set for processing
data('crude')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.