Giter Club home page Giter Club logo

word-counter's Introduction

Word Counter

An app that counts the number of instances of a word in a string, June 29, 2018

By Nick Rogers

Description

This app was created to count the number of instances of a word in a string. Specs: 1. Program will accept a valid user inputted word that will be used to be checked for in a string. Example input: "the" Example output: userInput = "the" -valid- Example reasoning: "the" is a commonly used word and often shows up partially in other words.

2. Program will accept a user inputted list of words as one input that will be split into an array. Example input: "The last theme for the Wednesday talk was Pokemon." Example output: {"The", "last", "theme", "for", "the", "Wednesday", "talk", "was", "Pokemon."} Example reasoning: This sentence includes upper and lower case and a partial match to the word "the".

3. Program will remove punctuation, force to lower case, and sort the array. Example input: {"The", "last", "theme", "for", "the", "Wednesday", "talk", "was", "Pokemon."} Example output: {"for", "last", "pokemon", "talk", "the", "the", "theme", "was", "wednesday"} Example reasoning: Example shows removing punctuation, forcing to lower case, and sorting.

4. Program will check each word in the array with the first word inputted. Partial matches not counted. Example input: compare "the" with {"for", "last", "pokemon", "talk", "the", "the", "theme", "was", "wednesday"} Example output: 2 matches Example reasoning: Example shows that two instances of "the" were found and "theme" was not included in the count.

Setup/Installation Requirements

  • Clone repository from github
  • Compile and mono program from console.

Known Bugs

No known bugs.

Support and contact details

Nick Rogers email: [email protected]

Technologies Used

Created with Atom editor. Use mono console to view.

License

No license required

Copyright (c) 2018 Nick Rogers

word-counter's People

Watchers

 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.