sdapi icon indicating copy to clipboard operation
sdapi copied to clipboard

word property undefined in conjugate results

Open delesslingw opened this issue 6 months ago • 0 comments

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
  }
]

delesslingw avatar Jul 29 '25 23:07 delesslingw