Skip to content

word property undefined in conjugate results #7

@delesslingw

Description

@delesslingw

Trying out the library and unfortunately the conjugate method returns an array of objects with word properties that equal undefined. In this example I'm using andar but it seems to happen for every verb I try.

My code:

const {translate, conjugate} = require('sdapi').default

translate('libro').then(console.log);

conjugate('andar').then(res => res.filter(entry => entry.paradigm === "presentIndicative")).then(console.log)

Console:

 [
  {
    word: 'libro',
    lang: 'es',
    gender: 'm',
    context: 'publication',
    meaning: 'book',
    part: 'noun',
    examples: [ [Object], [Object] ],
    regions: []
  },
  {
    word: 'libro',
    lang: 'es',
    gender: 'm',
    context: 'finance',
    meaning: 'book',
    part: 'noun',
    examples: [ [Object] ],
    regions: []
  }
]
[
  {
    pronoun: 'yo',
    person: '1st',
    number: 'sig',
    tense: 'present',
    mood: 'ind',
    form: 'simp',
    paradigm: 'presentIndicative',
    word: undefined,
    isIrregular: false
  },
  {
    pronoun: 'tú',
    person: '2nd',
    number: 'sig',
    tense: 'present',
    mood: 'ind',
    form: 'simp',
    paradigm: 'presentIndicative',
    word: undefined,
    isIrregular: false
  },
  {
    pronoun: 'él/ella/Ud.',
    person: '3rd',
    number: 'sig',
    tense: 'present',
    mood: 'ind',
    form: 'simp',
    paradigm: 'presentIndicative',
    word: undefined,
    isIrregular: false
  },
  {
    pronoun: 'nosotros',
    person: '1st',
    number: 'plr',
    tense: 'present',
    mood: 'ind',
    form: 'simp',
    paradigm: 'presentIndicative',
    word: undefined,
    isIrregular: false
  },
  {
    pronoun: 'vosotros',
    person: '2nd',
    number: 'plr',
    tense: 'present',
    mood: 'ind',
    form: 'simp',
    paradigm: 'presentIndicative',
    word: undefined,
    isIrregular: false
  },
  {
    pronoun: 'ellos/ellas/Uds.',
    person: '3rd',
    number: 'sig',
    tense: 'present',
    mood: 'ind',
    form: 'simp',
    paradigm: 'presentIndicative',
    word: undefined,
    isIrregular: false
  },
  {
    pronoun: 'vos',
    person: undefined,
    number: undefined,
    tense: 'present',
    mood: 'ind',
    form: 'simp',
    paradigm: 'presentIndicative',
    word: undefined,
    isIrregular: false
  }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions