2.0.1 • Published 2 years ago

hedges v2.0.1

Weekly downloads
190
License
MIT
Repository
github
Last release
2 years ago

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

Contribute

Yes please! See How to Contribute to Open Source.

Security

This package is safe.

License

MIT © Titus Wormer

2.0.1

2 years ago

2.0.0

3 years ago

1.2.5

4 years ago

1.2.4

5 years ago

1.2.3

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago

0.3.0

9 years ago

0.2.2

9 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago

0.0.1

10 years ago