hedges
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

hedges

Build Coverage Downloads Size

List of supposed English (both British and American) hedge words.

Contents

What is this?

This package exposes a list of hedge words, which are typically used to introduce ambiguity or indecisiveness.

When should I use this?

Use this when you want to do fun things with natural language.

Install

This package is ESM only. In Node.js (version 14.14+, 16.0+), install with npm:

npm install hedges

In Deno with esm.sh:

import {hedges} from 'https://esm.sh/hedges@2'

In browsers with esm.sh:

<script type="module">
  import {hedges} from 'https://esm.sh/hedges@2?bundle'
</script>

Use

import {hedges} from 'hedges'

console.log(hedges.length) //=> 162

console.log(hedges.slice(0, 10))

Yields:

[ 'a bit',
  'about',
  'actually',
  'allege',
  'alleged',
  'almost',
  'almost never',
  'always',
  'and all that',
  'and so forth' ]

API

This package exports the identifier hedges. There is no default export.

hedges

Roughly, hedges exposes information as a list of strings (Array<string>).

Data

For a complete list of supported hedge words and phrases, like, see data.txt.

👉 Note: that the words listed in hedges are speculated to be hedges, although perhaps not.

Types

This package is fully typed with TypeScript. It exports no additional types.

Compatibility

This package is at least compatible with all maintained versions of Node.js. As of now, that is Node.js 14.14+ and 16.0+. It also works in Deno and modern browsers.

Related

  • buzzwords — list of buzzwords
  • dale-chall — list of familiar American-English words (1995)
  • fillers — list of filler words
  • profanities — list of profane words
  • spache — list of simple American-English words (1974)
  • weasels — list of weasel words

Contribute

Yes please! See How to Contribute to Open Source.

Security

This package is safe.

License

MIT © Titus Wormer

Readme

Keywords

Package Sidebar

Install

npm i hedges

Weekly Downloads

260

Version

2.0.1

License

MIT

Unpacked Size

9.09 kB

Total Files

5

Last publish

Collaborators

  • wooorm
  • zeke