From 7e3cc720d3e38d68879c82432f38cbfa182a3bb6 Mon Sep 17 00:00:00 2001 From: kbenoit Date: Wed, 10 Feb 2021 12:35:08 +0000 Subject: [PATCH] Update release version and pkgdown --- DESCRIPTION | 2 +- README.md | 12 +++--- docs/404.html | 2 +- docs/LICENSE-text.html | 2 +- docs/authors.html | 2 +- docs/index.html | 38 +++++++++---------- docs/news/index.html | 14 +++++-- docs/pkgdown.yml | 2 +- docs/reference/data_stopwords_ancient.html | 2 +- docs/reference/data_stopwords_marimo.html | 2 +- docs/reference/data_stopwords_misc.html | 2 +- docs/reference/data_stopwords_nltk.html | 2 +- docs/reference/data_stopwords_perseus.html | 2 +- docs/reference/data_stopwords_smart.html | 2 +- docs/reference/data_stopwords_snowball.html | 2 +- .../data_stopwords_stopwordsiso.html | 2 +- docs/reference/index.html | 8 +--- docs/reference/lookup_iso_639_1.html | 2 +- docs/reference/stopwords-package.html | 2 +- docs/reference/stopwords.html | 2 +- docs/reference/stopwords_getlanguages.html | 2 +- docs/reference/stopwords_getsources.html | 2 +- docs/reference/stopwords_options.html | 2 +- docs/sitemap.xml | 3 -- 24 files changed, 55 insertions(+), 58 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 77cbc2f..6970280 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: stopwords Type: Package Title: Multilingual Stopword Lists -Version: 2.1.9000 +Version: 2.2 Authors@R: c(person("Kenneth", "Benoit", email = "kbenoit@lse.ac.uk", role = c("aut", "cre")), person("David", "Muhr", email = "muhrdavid+github@gmail.com", role = "aut"), person("Kohei", "Watanabe", email = "watanabe.kohei@gmail.com", role = "aut")) diff --git a/README.md b/README.md index a1496fc..9c3a161 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![CRAN Version](https://www.r-pkg.org/badges/version/stopwords)](https://CRAN.R-project.org/package=stopwords) -[![](https://img.shields.io/badge/devel%20version-2.1.9000-royalblue.svg)](https://github.com/quanteda/stopwords) +[![](https://img.shields.io/badge/devel%20version-2.2-royalblue.svg)](https://github.com/quanteda/stopwords) [![R build status](https://github.com/quanteda/stopwords/workflows/R-CMD-check/badge.svg)](https://github.com/quanteda/stopwords/actions) [![codecov](https://codecov.io/gh/quanteda/stopwords/branch/master/graph/badge.svg)](https://codecov.io/gh/quanteda/stopwords) @@ -81,7 +81,7 @@ source over the “stopwords-iso” source, for instance.) The following languages are currently available: | Language | Code | snowball | marimo | nltk | stopwords-iso | Other | -|:----------------|:-----|:--------:|:------:|:----:|:-------------:|:-----------------| +| :-------------- | :--- | :------: | :----: | :--: | :-----------: | :--------------- | | Afrikaans | af | | | | ✓ | | | Arabic | ar | | ✓ | ✓ | ✓ | misc | | Armenian | hy | | | | ✓ | | @@ -186,7 +186,7 @@ stopwords::stopwords_getlanguages("snowball") ## Modifying stopword lists It is now possible to edit your own stopword lists, using the -interactive editor, with functions from the **quanteda** package (>= +interactive editor, with functions from the **quanteda** package (\>= v2.02). For instance to edit the English stopword list for the Snowball source: @@ -205,7 +205,7 @@ my_stopwordlist <- quanteda::list_edit(stopwords("en", source = "marimo", simpli Finally, it’s possible to remove stopwords using pattern matching. The default is the easy-to-use [“glob” style -matching](https://en.wikipedia.org/wiki/Glob_(programming)), which is +matching](https://en.wikipedia.org/wiki/Glob_\(programming\)), which is equivalent to fixed matching when no wildcard characters are used. So to remove personal pronouns from the English Snowball word list, for instance, this would work: @@ -213,9 +213,7 @@ instance, this would work: ``` r library("quanteda", warn.conflicts = FALSE) ## Package version: 2.9.9000 -## Unicode version: 10.0 -## ICU version: 61.1 -## Parallel computing: 12 of 12 threads used. +## Parallel computing: 8 of 8 threads used. ## See https://quanteda.io for tutorials and examples. posspronouns <- stopwords::data_stopwords_marimo$en$pronoun$possessive posspronouns diff --git a/docs/404.html b/docs/404.html index aa8c07b..e702506 100644 --- a/docs/404.html +++ b/docs/404.html @@ -73,7 +73,7 @@ stopwords - 2.1 + 2.2 diff --git a/docs/LICENSE-text.html b/docs/LICENSE-text.html index e2e5bd9..7eb2075 100644 --- a/docs/LICENSE-text.html +++ b/docs/LICENSE-text.html @@ -73,7 +73,7 @@ stopwords - 2.1 + 2.2 diff --git a/docs/authors.html b/docs/authors.html index 05f5b10..3c0af2c 100644 --- a/docs/authors.html +++ b/docs/authors.html @@ -73,7 +73,7 @@ stopwords - 2.1 + 2.2 diff --git a/docs/index.html b/docs/index.html index fe3ee0b..60705be 100644 --- a/docs/index.html +++ b/docs/index.html @@ -32,7 +32,7 @@ stopwords - 2.1 + 2.2 @@ -741,7 +741,7 @@

 library("quanteda", warn.conflicts = FALSE)
 ## Package version: 2.9.9000
-## Parallel computing: 12 of 12 threads used.
+## Parallel computing: 8 of 8 threads used.
 ## See https://quanteda.io for tutorials and examples.
 posspronouns <- stopwords::data_stopwords_marimo$en$pronoun$possessive
 posspronouns
@@ -763,20 +763,20 @@ 

Adding stopwords to your own package

-

As of version 1.1, we’ve made it a one-step process to add stopwords() to your package through a re-export. Simply call use_stopwords() like this:

-
> stopwords::use_stopwords()
-✔ Setting active project to '/Users/me/GitHub/mypackage'
-✔ Adding 'stopwords' to Imports field in DESCRIPTION
-✔ Writing 'R/use-stopwords.R'
-● Run `devtools::document()` to update 'NAMESPACE'
-
-> devtools::document()
-Updating mypackage documentation
-Updating collate directive in  /Users/me/GitHub/mypackage/DESCRIPTION 
-Writing NAMESPACE
-Loading mypackage
-Writing NAMESPACE
-Writing stopwords.Rd
+

In v2.2, we’ve removed the function use_stopwords() because the dependency on usethis added too many downstream package dependencies, and stopwords is meant to be a lightweight package.

+

However it is very easy to add a re-export for stopwords() to your package by adding this file as stopwords.R:

+
+#' Stopwords
+#'
+#' @description
+#' Return a character vector of stopwords.
+#' See \code{stopwords::\link[stopwords:stopwords]{stopwords()}} for details.
+#' @usage stopwords(language = "en", source = "snowball")
+#' @name stopwords
+#' @importFrom stopwords stopwords
+#' @export
+NULL
+

and add stopwords to the list of Imports: in your DESCRIPTION file.

@@ -828,9 +828,9 @@

Developers

Dev status

  • CRAN Version
  • -
  • -
  • Travis-CI Build Status
  • -
  • Coverage status
  • +
  • +
  • R build status
  • +
  • codecov
  • Downloads
  • Total Downloads
diff --git a/docs/news/index.html b/docs/news/index.html index fab4703..1e78e87 100644 --- a/docs/news/index.html +++ b/docs/news/index.html @@ -73,7 +73,7 @@ stopwords - 2.1 + 2.2
@@ -107,9 +107,17 @@

Changelog

Source: NEWS.md
+
+

+stopwords v2.2 Unreleased +

+
    +
  • Removes use_stopword(), as this introduces too many higher-order dependencies via usethis.
  • +
+

-stopwords v2.1 Unreleased +stopwords v2.1 2020-12-08

  • Updates the ancient Greek and Latin stopwords in the ancient source, and moves older ancient stopwords lists to a new perseus source.
  • @@ -121,7 +129,7 @@

    stopwords v2.0 2020-04-14

      -
    • Adds use_stopwords(), for adding a re-export of this function to any package.
    • +
    • Adds use_stopwords(), for adding a re-export of this function to any package.
    • Adds the NLTK source, containing stopwords from the Python NLTK library, in 23 languages.
    • Adds the “marimo” source, for 5 languages, created by Kohei Watanabe.
    • Adds ancient language stopword lists (Greek and Latin).
    • diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index 556f4ee..c20a74b 100644 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -2,7 +2,7 @@ pandoc: 2.9.2.1 pkgdown: 1.6.1 pkgdown_sha: ~ articles: {} -last_built: 2020-12-08T10:23Z +last_built: 2021-02-10T08:56Z urls: reference: http://stopwords.quanteda.io/reference article: http://stopwords.quanteda.io/articles diff --git a/docs/reference/data_stopwords_ancient.html b/docs/reference/data_stopwords_ancient.html index 7315207..a77055d 100644 --- a/docs/reference/data_stopwords_ancient.html +++ b/docs/reference/data_stopwords_ancient.html @@ -76,7 +76,7 @@ stopwords - 2.1 + 2.2
diff --git a/docs/reference/data_stopwords_marimo.html b/docs/reference/data_stopwords_marimo.html index db02148..cc93abd 100644 --- a/docs/reference/data_stopwords_marimo.html +++ b/docs/reference/data_stopwords_marimo.html @@ -75,7 +75,7 @@ stopwords - 2.1 + 2.2 diff --git a/docs/reference/data_stopwords_misc.html b/docs/reference/data_stopwords_misc.html index 7fcda80..3d3a17f 100644 --- a/docs/reference/data_stopwords_misc.html +++ b/docs/reference/data_stopwords_misc.html @@ -74,7 +74,7 @@ stopwords - 2.1 + 2.2 diff --git a/docs/reference/data_stopwords_nltk.html b/docs/reference/data_stopwords_nltk.html index e89c641..b606d50 100644 --- a/docs/reference/data_stopwords_nltk.html +++ b/docs/reference/data_stopwords_nltk.html @@ -74,7 +74,7 @@ stopwords - 2.1 + 2.2 diff --git a/docs/reference/data_stopwords_perseus.html b/docs/reference/data_stopwords_perseus.html index e7d5d4a..c9e11a1 100644 --- a/docs/reference/data_stopwords_perseus.html +++ b/docs/reference/data_stopwords_perseus.html @@ -76,7 +76,7 @@ stopwords - 2.1 + 2.2 diff --git a/docs/reference/data_stopwords_smart.html b/docs/reference/data_stopwords_smart.html index 92299d6..6056fe6 100644 --- a/docs/reference/data_stopwords_smart.html +++ b/docs/reference/data_stopwords_smart.html @@ -76,7 +76,7 @@ stopwords - 2.1 + 2.2 diff --git a/docs/reference/data_stopwords_snowball.html b/docs/reference/data_stopwords_snowball.html index 16d2765..b8452b3 100644 --- a/docs/reference/data_stopwords_snowball.html +++ b/docs/reference/data_stopwords_snowball.html @@ -74,7 +74,7 @@ stopwords - 2.1 + 2.2 diff --git a/docs/reference/data_stopwords_stopwordsiso.html b/docs/reference/data_stopwords_stopwordsiso.html index 329abb3..b3623d8 100644 --- a/docs/reference/data_stopwords_stopwordsiso.html +++ b/docs/reference/data_stopwords_stopwordsiso.html @@ -75,7 +75,7 @@ stopwords - 2.1 + 2.2 diff --git a/docs/reference/index.html b/docs/reference/index.html index 727bf08..c9fedd3 100644 --- a/docs/reference/index.html +++ b/docs/reference/index.html @@ -73,7 +73,7 @@ stopwords - 2.1 + 2.2 @@ -198,12 +198,6 @@

stopwords_getsources()

list available stopwords sources

- - - -

use_stopwords()

- -

Use stopwords in your package

diff --git a/docs/reference/lookup_iso_639_1.html b/docs/reference/lookup_iso_639_1.html index 6863c3a..9ad40a1 100644 --- a/docs/reference/lookup_iso_639_1.html +++ b/docs/reference/lookup_iso_639_1.html @@ -75,7 +75,7 @@ stopwords - 2.1 + 2.2 diff --git a/docs/reference/stopwords-package.html b/docs/reference/stopwords-package.html index 1d8916e..cffaa83 100644 --- a/docs/reference/stopwords-package.html +++ b/docs/reference/stopwords-package.html @@ -76,7 +76,7 @@ stopwords - 2.1 + 2.2 diff --git a/docs/reference/stopwords.html b/docs/reference/stopwords.html index 30a363f..3039f7e 100644 --- a/docs/reference/stopwords.html +++ b/docs/reference/stopwords.html @@ -79,7 +79,7 @@ stopwords - 2.1 + 2.2 diff --git a/docs/reference/stopwords_getlanguages.html b/docs/reference/stopwords_getlanguages.html index 62fe783..97e9edc 100644 --- a/docs/reference/stopwords_getlanguages.html +++ b/docs/reference/stopwords_getlanguages.html @@ -75,7 +75,7 @@ stopwords - 2.1 + 2.2 diff --git a/docs/reference/stopwords_getsources.html b/docs/reference/stopwords_getsources.html index c16a8f9..8ab109f 100644 --- a/docs/reference/stopwords_getsources.html +++ b/docs/reference/stopwords_getsources.html @@ -75,7 +75,7 @@ stopwords - 2.1 + 2.2 diff --git a/docs/reference/stopwords_options.html b/docs/reference/stopwords_options.html index 18f9813..aae137b 100644 --- a/docs/reference/stopwords_options.html +++ b/docs/reference/stopwords_options.html @@ -74,7 +74,7 @@ stopwords - 2.1 + 2.2 diff --git a/docs/sitemap.xml b/docs/sitemap.xml index 3efdba3..18b7cf3 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -45,7 +45,4 @@ http://stopwords.quanteda.io/reference/stopwords_options.html - - http://stopwords.quanteda.io/reference/use_stopwords.html -