Code Monkey home page Code Monkey logo

nodelibs's Introduction

nodelibs

HitCount

nodelibs-image

What?

Try out nodelibs for yourself!

nodelibs is an app which is used to fill in madlibs templates. As the user types in the text box, word suggestions will be shown dynamically as more letters are input or deleted.

When the user submits all the required words for the madlib, the completed madlib will be generated and shown to the user.

Why?

To create a fun game which uses a dictionary API.

How?

The server will be set up using node.js. The four different parts of speech we will focus on for filling in the madlibs are nouns, verbs, adverbs, and adjectives. These will be stored in and accessed from .txt files for the autocomplete feature. The Wordnik API will be used to verify that the input from the user is a word.

TDD will be practiced throughout creating the project, using tape. Istanbul will be used for checking test coverage.

The project will also be deployed to Heroku.

Stretch Goals

  • Check part of speech from Wordnik
  • Include other parts of speech as suggested by Wordnik
  • Check the correct verb type is entered from Wordnik
  • Add validated words to the dictionary
  • Suggest proper word forms eg. plural nouns, past tense verbs, etc

nodelibs's People

Contributors

eliasmalik avatar andrewmacmurray avatar katbow avatar jay-meister avatar

Watchers

James Cloos avatar

nodelibs's Issues

Readme

Readme needs more work
Maybe address what, why, how?

Commenting

Your code would be easier to read if you added comments to explain what is happening.

Looking good otherwise, great work

Global variables

Maybe think about using an instantly invoked function expression to avoid the global variables in your index.js file?

Also, we are wondering why you don't use your variables more - e.g. you declare var wordForm = document.getElementById('word-form'); at the top, but then you still use document.getElementById('word-form') instead of the variable wordForm at lines 17, 31, 61 and 72...

Seems like you could cut down your code quite a bit by using the variables more instead of getElementById'ing it?

Refactor index.js

In index.js maybe refactor line 23 to be

chooseMessage = (nextHint[0] === 'A') ? 'Choose an ' : 'Choose a ';

instead of

(nextHint[0] === 'A') ? chooseMessage = 'Choose an ' : chooseMessage = 'Choose a ';

and I think there should be a similar change on line 117

Autocomplete doesn't do plurals

When madlibs asks for a plural, that means you can't use the autocomplete to select your word. Is there any way you could automatically turn the word into its plural? Or maybe just hide autocomplete for plural words? Orrrrrr prompt the user to make the word plural if they autoselect it (instead of automatically submitting the word on click)...

Hit counter

Is this code doing what it's supposed to do? Looks a bit suspect. If that is how it's meant to work, I'd love to know how it's getting the hit count : S

[![HitCount](https://hitt.herokuapp.com/{username||org}/nodelibs.svg)](https://github.com/vanillasquad/nodelibs)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.