This program find occurrences of specified word in given texts. User must enter two type of inputs: word to search/count and text to look for the word.
Specs | Input | Output | Rationale |
---|---|---|---|
Program stores specified word in lower cases, for case insensitive match. | "Dream" | "dream" | (Data will be stored a string each string of word will be lowercased.) |
Program stores texts in lower cases. | "I HAVE A DREAM!" | "i have a dream!" | (Text should be also lower cased for case-insensitive match.) |
Program detects words inside the given text and store it as a string array. | "Free at last!" | {"free", "at", "last", ""} | (Program detects punctuations and space to separate text into words. Note that the last element of array is an empty string, added because of '!' at the end of the text.) |
Program returns counts only in the case of perfect match. | Word: "Dream" / Text: "Dream Dreaam Drem Dream Dreaming" | Match: "Dream" | (Program counts only perfect match.) |
Program returns final counts to users. | Word: "Free" / Text: "Free at last! Free at last! Thank God Almighty, we are free at last!" | Count = 3 | (return total number of case-insensitive, perfect match.) |
- Clone this repository
$ git clone https://github.com/goenchan/WordCount
- Navigate into the directory
$ cd WordCount.Solution/WordCounter/
- Run local hosting through dotnet run
$ dotnet run
- Connect to http://localhost:5000 in web browser.
None. Module other than WordCounter is not added yet.
- Visual Studio
- C#/.Net Core 1.1
- AspNetCore MVC 1.1.3
- JavaScript
- CSS
- HTML