Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thomasmost/polymnia
a strictly typed API wrapper for datamuse
https://github.com/thomasmost/polymnia
Last synced: about 1 month ago
JSON representation
a strictly typed API wrapper for datamuse
- Host: GitHub
- URL: https://github.com/thomasmost/polymnia
- Owner: thomasmost
- Created: 2020-07-03T20:47:10.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T10:34:07.000Z (almost 2 years ago)
- Last Synced: 2024-04-26T14:41:43.134Z (7 months ago)
- Language: TypeScript
- Homepage:
- Size: 1.27 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Polymnia
---Polymnia is a strictly typed wrapper for the datamuse API
Usage
---```
npm install polymniaimport { suggest, words } from 'polymnia';
```Currently supports many of the common query filters for the Words API as described here: http://www.datamuse.com/api/
Queries can be constructed using the typed Polymnia query config:
```
type WordsApiParams = {
leftContext?: string;
rightContext?: string;
maxResults?: number;
meansLike?: string;
metadata?: Partial>;
oftenDescribedAs?: string;
oftenDescribes?: string;
rawQuery?: string;
rhymesWith?: string;
soundsLike?: string;
startsWith?: string;
endsWith?: string;
topics?: string[];
wildCount?: number;
};
```...or by passing in a `rawQuery`.