npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

spanishconjugator

v2.0.1

Published

A npm package for spanish conjugation by mood, tense and pronoun

Downloads

7

Readme

Spanish Conjugator JS 🇪🇸

GitHub Workflow Status npm npm GitHub top language GitHub repo size

A npm package to conjugate spanish verbs by mood, tense and pronoun.

Installation

npm i spanishconjugator

Example usage

Example node usage; the conjugate function takes 4 parameters being root-verb, tense, mood, pronoun respectively

const SpanishConjugator = require('spanishconjugator');
let conjugation = SpanishConjugator.SpanishConjugator('hablar','imperfect','indicitive','yo');
console.log(conjugation);
>>> hablaba

Tenses, Moods and Pronouns implemented

All pronouns are implemented yo, tu, usted, nosotros, vosotros, ustedes

All moods currently implemented are indicitive, conditional

All tenses currently implemented are present, imperfect, preterite, future, present_perfect, past_anterior, future_perfect, conditional_simple

Developing - Cloning

if you would like to help develop spanish-conjugatorjs, follow succeeding code

Whilst in command line create a folder in which you would like to work (name only reccommended)

Clone Spanish-Conjugator

$ git clone https://github.com/Benedict-Carling/spanish-conjugator.git

Install developer dependencies for unit test e.g Jest

$ npm install --dev

Developing - Testing

We have chosen to use the library Jest for our unit tests we can check the code works by running it against out current unit tests located in the index.test.js file with the command:

$ npm test

Developing - Submission

To submit code to this repositry please fork and submit a pull request 🚀

Exaple usage of different moods/tenses with hablar and yo

Indicitive Present

SpanishConjugator.SpanishConjugator('hablar','present','indicitive','yo')
>>> hablo

Indicitive Imperfect

SpanishConjugator.SpanishConjugator('hablar','imperfect','indicitive','yo')
>>> hablaba

Indicitive Preterite

SpanishConjugator.SpanishConjugator('hablar','preterite','indicitive','yo')
>>> hablé

Indicitive Future

```node
SpanishConjugator.SpanishConjugator('hablar','future','indicitive','yo')
>>> hablaré

Indicitive Present_Perfect

SpanishConjugator.SpanishConjugator('hablar','present_perfect','indicitive','yo')
>>> he hablado

Indicitive Past_Anterior

SpanishConjugator.SpanishConjugator('hablar','past_anterior','indicitive','yo')
>>> hube hablado

Indicitive Future_Perfect

SpanishConjugator.SpanishConjugator('hablar','future_perfect','indicitive','yo')
>>> habré hablado

Conditional Simple

SpanishConjugator.SpanishConjugator('hablar','simple_conditional','conditional','yo')
>>> hablaría

Conditional Perfect

SpanishConjugator.SpanishConjugator('hablar','perfect','conditional','yo')
>>> habría hablado

Imperitive Afferative

SpanishConjugator.SpanishConjugator('hablar','affirmative','imperitive','tu')
>>> habla

Imperitive Negative

SpanishConjugator.SpanishConjugator('hablar','negative','imperitive','tu')
>>> hables

Subjunctive Present

SpanishConjugator.SpanishConjugator('hablar','present','subjunctive','yo')
>>> hable

Subjunctive Imperfect

SpanishConjugator.SpanishConjugator('hablar','imperfect','subjunctive','yo')
>>> hablara

Subjunctive Imperfect_se

SpanishConjugator.SpanishConjugator('hablar','imperfect_se','subjunctive','yo')
>>> hablase

Subjunctive Future

SpanishConjugator.SpanishConjugator('hablar','future','subjunctive','yo')
>>> hablare

Alternative Versions

Check out the python version of the library if you are working in a python enviroment

https://github.com/Benedict-Carling/spanish-conjugator