Package: politeness 0.9.4

politeness: Detecting Politeness Features in Text

Detecting markers of politeness in English natural language. This package allows researchers to easily visualize and quantify politeness between groups of documents. This package combines prior research on the linguistic markers of politeness. We thank the Spencer Foundation, the Hewlett Foundation, and Harvard's Institute for Quantitative Social Science for support.

Authors:Mike Yeomans, Alejandro Kantor, Dustin Tingley

politeness_0.9.4.tar.gz
politeness_0.9.4.zip(r-4.5)politeness_0.9.4.zip(r-4.4)politeness_0.9.4.zip(r-4.3)
politeness_0.9.4.tgz(r-4.5-any)politeness_0.9.4.tgz(r-4.4-any)politeness_0.9.4.tgz(r-4.3-any)
politeness_0.9.4.tar.gz(r-4.5-noble)politeness_0.9.4.tar.gz(r-4.4-noble)
politeness_0.9.4.tgz(r-4.4-emscripten)politeness_0.9.4.tgz(r-4.3-emscripten)
politeness.pdf |politeness.html
politeness/json (API)

# Install 'politeness' in R:
install.packages('politeness', repos = c('https://myeomans.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/myeomans/politeness/issues

Datasets:
  • bowl_offers - Purchase offers for bowl
  • feature_table - Table of Politeness Features
  • phone_offers - #' Positive Emotions List #' #' Positive words. #' #' @format A list of 2006 positively-valenced words #' "positive_list"
  • polite_train - Pre-Trained Politeness
  • receptive_model - A pre-trained model for detecting conversational receptiveness. Estimated with glmnet using annotated data from a previous paper. Primarily for use within the receptiveness() function.
  • receptive_names - This is the list of variables to be extracted for the receptiveness algorithm For internal use only, within the receptiveness() function.
  • receptive_polite - Pre-Trained Receptiveness Data
  • receptive_train - Pre-Trained Receptiveness Data
  • uk2us - UK to US Conversion dictionary

On CRAN:

Conda:

7.49 score 25 stars 1 packages 41 scripts 929 downloads 11 exports 65 dependencies

Last updated 2 months agofrom:a1e254a62a. Checks:1 OK, 8 NOTE. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKMar 12 2025
R-4.5-winNOTEMar 12 2025
R-4.5-macNOTEMar 12 2025
R-4.5-linuxNOTEMar 12 2025
R-4.4-winNOTEMar 12 2025
R-4.4-macNOTEMar 12 2025
R-4.4-linuxNOTEMar 12 2025
R-4.3-winNOTEMar 12 2025
R-4.3-macNOTEMar 12 2025

Exports:exampleTextsfeaturePlotfindPoliteTextsmodelPlotpolitenesspolitenessDNMpolitenessModelpolitenessPlotpolitenessProjectionreceptivenesstrainModel

Dependencies:BHclicodetoolscolorspacedata.tabledistromdplyrfansifarverfastmatchforeachgamlrgenericsggplot2ggrepelglmnetgluegtablehereisobandISOcodesiteratorsjsonlitelabelinglatticelifecyclemagrittrMASSMatrixmgcvmunsellnlmeNLPpillarpkgconfigpngquantedaR6rappdirsRColorBrewerRcppRcppEigenRcppTOMLreticulaterlangrprojrootscalesshapeslamSnowballCspacyrstopwordsstringistringrsurvivaltextirtibbletidyselecttmutf8vctrsviridisLitewithrxml2yaml

Politeness

Rendered frompoliteness.Rmdusingknitr::rmarkdownon Mar 12 2025.

Last update: 2024-10-01
Started: 2017-09-06