@autheur/datasets
French word datasets and getters
Installation
npm i @autheur/datasets
Usage
getRandomNoun
import { getRandomNoun } from '@autheur/datasets';
const noun = getRandomNoun();
// {
// singular: 'animal',
// gender: 'm',
// plural: 'animaux'
// }
getRandomAdjective
import { getRandomAdjective } from '@autheur/datasets';
const adjective = getRandomAdjective();
// {
// femininSingular: 'blanche',
// femininPlural: 'blanches',
// masculinSingular: 'blanc',
// masculinPlural: 'blancs',
// }
getRandomAdverbe
import { getRandomAdverbe } from '@autheur/datasets';
const adjective = getRandomAdverbe();
// finallement
determinants
See determinants.ts.
import { determinants } from '@autheur/datasets';
Other packages
This is a from a monorepo with the following packages:
Package | Description |
---|---|
@autheur/dataset |
Dataset of sorted french words broke down by categories |
@autheur/generator |
The generator itself with they logic |
@autheur/operators |
Utilities to manipulate words (ex: pluralize, feminize, ...) |
Credits
Coded with
License
This project is under the MIT license.