Code Monkey home page Code Monkey logo

counting-words's Introduction

counting-words

###Running locally:

Clone application then:

rake db:create
rake db:migrate
rails s

###Problem Description: Create a web-based word counting service, using the web app framework or the standard libraries of the language of your choice. There should be an index page, a form page, and a result/form response page. If you want, the index page can contain the form page as well.

The form page should request a URL as the only field, with some amount of validation.

The result/form response page should:

  • Check to see if this URL has previously been scanned, If so, display the stored results from the previous scan (see below).
  • Otherwise, read the URL and provide a list of the 10 most common words that appear as text at that URL with the number of times they appear and store the result.

The index page should list the previously scanned URLs, the most common word at the URL and the number of times it appeared, and a way to get to the result page for that particular URL.

###Assumptions made: To be useful, I excluded all common English words (see ScrapedURL::COMMON_WORDS). I also excluded numbers, since this was only looking for words. However, if looking over a code blog, it will still include tags/code like 'li'.

counting-words's People

Contributors

jmkoni avatar

Watchers

 avatar  avatar

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.