Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on May 3, 2015
  1. * `as.tdm.wfm` would error if no grouping variable was supplied. This…

    … behavior
      has been corrected.
Commits on May 2, 2015
  1. updated documentation

Commits on Apr 30, 2015
  1. updated per kurt Hornik's warning:

    I will soon (at least try to) commit a change to r-devel which adds a
    subscript method for table objects which by default does not lose the
    "table" class unless a single cell is extracted.
    With this change in, while testing current work on NLP, I noticed that
    the change will break the qdap tests.  Specifically, you have
    Browse[2]> qdap:::cumulative.end_mark
    function (x, ...)
        types_key <- structure(list(Symbol = c(".", "?", "!", "|",
            "*.", "*?", "*!", "*|", "no.em", "blank"), Type = structure(c(1L,
            10L, 2L, 7L, 3L, 6L, 4L, 5L, 9L, 8L), .Label = c("Declarative",
            "Exclamatory", "Imperative-declarative", "Imperative-exclamatory",
            "Imperative-incomplete", "Imperative-question", "Incomplete",
            "Missing", "No end mark", "Question"), class = "factor")),
            .Names = c("Symbol", "Type"), row.names = c(NA, -10L),
            class = "data.frame")
        `%lcqdap%` <- qdapTools::`%lc%`
        x <- x %lcqdap% types_key
        x[] <- "Missing"
        all <- names(table(x))
        out <- lapply(1:length(x), function(i) {
            y <- table(x[1:i])
            missing <- all[!all %in% names(y)]
            if (!identical(missing, character(0))) {
                y <- c(y, setNames(rep(0, length(missing)), missing))
            data.frame(t(y[as.character(types_key[["Type"]][types_key[["Type"]] %in%
                names(y)])]), stringsAsFactors = FALSE)
    where (when running the test code), sometimes y comes out as a table (I
    guess when the
      y <- c(y, setNames(rep(0, length(missing)), missing))
    does not happen), and sometimes as a numeric.  This does not change when
    subscripting.  Now in the table case data.frame calls which gives something different than data.frame on
    the numeric, and the subsequent rbind fails.
    Can you pls fix this?  I think you can simply do
            y <- c(table(x[1:i]))
Commits on Apr 28, 2015
Commits on Apr 27, 2015
  1. * `pos` threw an error if only one word was passed to `text.var`. Fix:

      `drop = FALSE` has been added to data frame indexing.  Caught by
      StackOverflow user G_1991
Commits on Apr 24, 2015
  1. * `pres_debates2012` picks up a `role` column to make fitering out the

      candidates easier.  The variable order has also changed to put the `dialogue`
  2. reran the documentation

Commits on Apr 20, 2015
  1. * `add_incomplete` added to replace sentences with missing endmarks w…

    …ith a `|`
      to indicate an incomplete sentence.
  2. take 3

  3. update retake 2

  4. edited file

  5. * `scrubber` would automatically take a space and a single last chara…

    …cter and
      remove the space.  This was to remove spaces before ending punctuation.
      `scrubber` used `substring` rather than a more controlled regular expression.
      This has been corrected.  Report thanks to Fabrizio Maccallini.  See #207 for
      more information.
Commits on Apr 13, 2015
  1. Fixed name2sex to work with gender package changes in dev. Make sure …

    …this behavior is permanent and on CRAN for generder before pushing to qdap CRAN
Commits on Mar 30, 2015
  1. Update .travis.yml

Commits on Mar 2, 2015
  1. Update

Commits on Feb 28, 2015
  1. updated news

  2. fixed travis-warning

  3. * `strip` gets a speed boost (~10x) by using better regex algorithms,

      consolidating code/function calls, and by creating a generic `strip` method
      for different classes.
Commits on Feb 22, 2015
  1. * `trans_context` used `message` to print to the console. This result…

    …s in
      truncated output.  `message` has been replaced with `cat`.
Commits on Feb 14, 2015
  1. * `word_stats` gave an incorrect warning message for missing endmarks:

      "Some sentences not have standard qdap punctuation endmarks."  The "do" has
      been added: "Some sentences do not have standard qdap punctuation endmarks."
  2. added version badge

Commits on Jan 25, 2015
  1. * `pos` now treats contractions words as 2 words. For example the wor…

    …d count on
      what's is 2 for what + is.  The previous behavior was to strip out the
      apostrophes.  This was undesirable as the sentence "She's cool" would have no
      verb in the `pos` output.  This change affects `pos_by` and `formality` as
Commits on Dec 18, 2014
  1. * `multigsub`/`mgsub` get a speed boost through better programming ch…

    …oices. See
      issue #201 for details.  Thank you to @Alexey Ferapontov for his critical post that inspired the changes.
    close #201
Commits on Dec 15, 2014
  1. updated static docs

  2. added Animate.character

  3. added text to Aimate.formality

Commits on Dec 14, 2014
Something went wrong with that request. Please try again.