Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
This library gives you access to French words data by scraping them from the dictionary Le Robert, one of the most famous French dictionaries, using Puppeteer.
npm install le-robert
yarn add le-robert
pnpm add le-robert
Each function can be imported from the library as below 👇
// Require syntax
const { getDefinitionGroups, getPronunciation, ... } = require('le-robert');
// Import syntax
import { getDefinitionGroups, getPronunciation, ... } from 'le-robert';
getDefinitionGroups(wordQuery: string): Promise<DefinitionGroup[]>
await getDefinitionGroups('programmation'); // => https://sourceb.in/4rSVNnS0rQ
getPronunciation(wordQuery: string): Promise<Pronunciation>
await getPronunciation('programmation'); // => https://sourceb.in/5rHNNIWFZD
getUsageExamples(wordQuery: string): Promise<UsageExample[]>
await getUsageExamples('programmation'); // => https://sourceb.in/IekuY8L8Jp
getConjugationGroups(verbQuery: string): Promise<ConjugationGroup[]>
await getConjugationGroups('programmer'); // => https://sourceb.in/HZccVYUGzJ
Since some of the returned objects from the previous functions may be huge, here is the types to help you understand better how to use the data.
Also, you can use the intellisense of your editor to explore the data.
DefinitionGroup
interface DefinitionGroup {
category: string;
definitions: Definition[];
}
Definition
interface Definition {
value: string;
examples: string[];
context?: string;
}
Pronunciation
interface Pronunciation {
audioURL: string;
}
UsageExample
interface UsageExample {
value: string;
source: UsageExampleSource;
}
UsageExampleSource
interface UsageExampleSource {
value: string;
url: string;
}
ConjugationGroup
interface ConjugationGroup {
name: string;
subgroups: ConjugationSubgroup[];
}
ConjugationSubgroup
interface ConjugationSubgroup {
name: string;
tenses: ConjugationTense[];
}
ConjugationTense
interface ConjugationTense {
name: string;
conjugations: string[];
}
FAQs
A library to scrape data from the French dictionary Le Robert
We found that le-robert demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.