i want to use this indonesian word generator, but i need it to only generate 5 letter-words. what code do i write and where do i put it?

  • Qinerous@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 months ago

    instead of

    output = [word]
    

    write

    output = [word.getAllKeys.filter(w => w.length == 5)]