@stdlib/datasets-spam-assassin

Spam Assassin public mail corpus.

https://github.com/stdlib-js/datasets-spam-assassin

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.7%) to scientific vocabulary

Keywords

classification classifier corpus data dataset datasets e-mail email ham javascript mail nlp node node-js nodejs spam spam-assassin stdlib text
Last synced: 6 months ago · JSON representation

Repository

Spam Assassin public mail corpus.

Basic Info
Statistics
  • Stars: 6
  • Watchers: 4
  • Forks: 1
  • Open Issues: 0
  • Releases: 0
Topics
classification classifier corpus data dataset datasets e-mail email ham javascript mail nlp node node-js nodejs spam spam-assassin stdlib text
Created over 4 years ago · Last pushed 6 months ago
Metadata Files
Readme Changelog Contributing License Code of conduct Citation Security

README.md

About stdlib...

We believe in a future in which the web is a preferred environment for numerical computation. To help realize this future, we've built stdlib. stdlib is a standard library, with an emphasis on numerical and scientific computation, written in JavaScript (and C) for execution in browsers and in Node.js.

The library is fully decomposable, being architected in such a way that you can swap out and mix and match APIs and functionality to cater to your exact preferences and use cases.

When you use stdlib, you can be absolutely certain that you are using the most thorough, rigorous, well-written, studied, documented, tested, measured, and high-quality code out there.

To join us in bringing numerical computing to the web, get started by checking us out on GitHub, and please consider financially supporting stdlib. We greatly appreciate your continued support!

Spam Assassin

NPM version Build Status Coverage Status <!-- dependencies -->

The Spam Assassin public mail corpus.

## Installation ```bash npm install @stdlib/datasets-spam-assassin ``` Alternatively, - To load the package in a website via a `script` tag without installation and bundlers, use the [ES Module][es-module] available on the [`esm`][esm-url] branch (see [README][esm-readme]). - If you are using Deno, visit the [`deno`][deno-url] branch (see [README][deno-readme] for usage intructions). - For use in Observable, or in browser/node environments, use the [Universal Module Definition (UMD)][umd] build available on the [`umd`][umd-url] branch (see [README][umd-readme]). - To use as a general utility for the command line, install the corresponding [CLI package][cli-section] globally. The [branches.md][branches-url] file summarizes the available branches and displays a diagram illustrating their relationships. To view installation and usage instructions specific to each branch build, be sure to explicitly navigate to the respective README files on each branch, as linked to above.
## Usage ```javascript var corpus = require( '@stdlib/datasets-spam-assassin' ); ``` #### corpus() Returns the [Spam Assassin][spam-assassin] public mail corpus. ```javascript var data = corpus(); // returns [{...},{...},...] ``` Each `array` element has the following fields: - `id`: message id (relative to message `group`) - `group`: message group - `checksum`: object containing checksum info - `text`: message text (including headers) The message `group` may be one of the following: - `easy-ham-1`: easier to detect non-spam e-mails (2500 messages) - `easy-ham-2`: easier to detect non-spam e-mails collected at a later date (1400 messages) - `hard-ham-1`: harder to detect non-spam e-mails (250 messages) - `spam-1`: spam e-mails (500 messages) - `spam-2`: spam e-mails collected at a later date (1396 messages) The `checksum` object contains the following fields: - `type`: checksum type (e.g., MD5) - `value`: checksum value
## Examples ```javascript var corpus = require( '@stdlib/datasets-spam-assassin' ); var data; var i; data = corpus(); for ( i = 0; i < data.length; i++ ) { console.log( 'Character Count: %d', data[ i ].text.length ); } ```

## CLI
## Installation To use as a general utility, install the CLI package globally ```bash npm install -g @stdlib/datasets-spam-assassin-cli ```
### Usage ```text Usage: spam-assassin [options] Options: -h, --help Print this message. -V, --version Print the package version. --format fmt Output format: 'txt' or 'ndjson'. ```
### Notes - The CLI supports two output formats: plain text (`txt`) and newline-delimited JSON ([NDJSON][ndjson]). The default output format is `txt`.
### Examples ```bash $ spam-assassin ```


License

The data files (databases) are licensed under an Open Data Commons Public Domain Dedication & License 1.0 and their contents are licensed under Creative Commons Zero v1.0 Universal. The software is licensed under Apache License, Version 2.0.

* * * ## Notice This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. #### Community [![Chat][chat-image]][chat-url] --- ## Copyright Copyright © 2016-2025. The Stdlib [Authors][stdlib-authors].

Owner

  • Name: stdlib
  • Login: stdlib-js
  • Kind: organization

Standard library for JavaScript.

GitHub Events

Total
  • Push event: 37
  • Fork event: 1
Last Year
  • Push event: 37
  • Fork event: 1

Committers

Last synced: about 2 years ago

All Time
  • Total Commits: 47
  • Total Committers: 1
  • Avg Commits per committer: 47.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 15
  • Committers: 1
  • Avg Commits per committer: 15.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
stdlib-bot n****y@s****o 47
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 2
  • Total downloads:
    • npm 1,418 last-month
  • Total dependent packages: 5
    (may contain duplicates)
  • Total dependent repositories: 1
    (may contain duplicates)
  • Total versions: 16
  • Total maintainers: 4
npmjs.org: @stdlib/datasets-spam-assassin

Spam Assassin public mail corpus.

  • Homepage: https://stdlib.io
  • License: Apache-2.0
  • Latest release: 0.2.2
    published over 1 year ago
  • Versions: 12
  • Dependent Packages: 5
  • Dependent Repositories: 1
  • Downloads: 1,408 Last month
Rankings
Dependent packages count: 3.7%
Dependent repos count: 10.3%
Average: 11.3%
Stargazers count: 12.2%
Downloads: 14.9%
Forks count: 15.4%
Funding
  • type: opencollective
  • url: https://opencollective.com/stdlib
Last synced: 6 months ago
npmjs.org: @stdlib/datasets-spam-assassin-cli

Spam Assassin public mail corpus.

  • Homepage: https://stdlib.io
  • License: Apache-2.0
  • Latest release: 0.2.2
    published over 1 year ago
  • Versions: 4
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 10 Last month
Rankings
Stargazers count: 13.6%
Forks count: 15.9%
Average: 30.1%
Dependent repos count: 37.3%
Dependent packages count: 53.5%
Funding
  • type: opencollective
  • url: https://opencollective.com/stdlib
Last synced: 6 months ago

Dependencies

package.json npm
  • @stdlib/assert-is-browser ^0.0.x development
  • @stdlib/assert-is-plain-object-array ^0.0.x development
  • @stdlib/assert-is-string ^0.0.x development
  • @stdlib/assert-is-windows ^0.0.x development
  • @stdlib/bench ^0.0.x development
  • @stdlib/fs-read-dir ^0.0.x development
  • @stdlib/fs-rename ^0.0.x development
  • @stdlib/fs-write-file ^0.0.x development
  • @stdlib/process-exec-path ^0.0.x development
  • @stdlib/regexp-eol ^0.0.x development
  • istanbul ^0.4.1 development
  • proxyquire ^2.0.0 development
  • tap-spec 5.x.x development
  • tape git+https://github.com/kgryte/tape.git#fix/globby development
  • @stdlib/cli-ctor ^0.0.x
  • @stdlib/fs-read-file ^0.0.x
  • @stdlib/fs-read-json ^0.0.x
  • @stdlib/streams-node-stdout ^0.0.x
  • @stdlib/string-replace ^0.0.x
  • @stdlib/utils-copy ^0.0.x
.github/workflows/benchmark.yml actions
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
.github/workflows/cancel.yml actions
  • styfle/cancel-workflow-action 0.11.0 composite
.github/workflows/close_pull_requests.yml actions
  • superbrothers/close-pull-request v3 composite
.github/workflows/examples.yml actions
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
.github/workflows/npm_downloads.yml actions
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
  • actions/upload-artifact v3 composite
  • distributhor/workflow-webhook v3 composite
.github/workflows/productionize.yml actions
  • act10ns/slack v1 composite
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
  • stdlib-js/bundle-action main composite
  • stdlib-js/transform-errors-action main composite
.github/workflows/publish.yml actions
  • JS-DevTools/npm-publish v1 composite
  • act10ns/slack v1 composite
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
  • styfle/cancel-workflow-action 0.11.0 composite
.github/workflows/test.yml actions
  • act10ns/slack v1 composite
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
.github/workflows/test_bundles.yml actions
  • act10ns/slack v1 composite
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
  • denoland/setup-deno v1 composite
.github/workflows/test_coverage.yml actions
  • act10ns/slack v1 composite
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
  • codecov/codecov-action v3 composite
  • distributhor/workflow-webhook v3 composite
.github/workflows/test_install.yml actions
  • act10ns/slack v1 composite
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
.github/workflows/publish_cli.yml actions
  • JS-DevTools/npm-publish fe72237be0920f7a0cafd6a966c9b929c9466e9b composite
  • act10ns/slack ed1309ab9862e57e9e583e51c7889486b9a00b0f composite
  • actions/checkout 8ade135a41bc03ea155e62e844d188df1ea18608 composite
  • actions/setup-node 5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d composite
  • styfle/cancel-workflow-action b173b6ec0100793626c2d9e6b90435061f4fc3e5 composite