Giter Site home page Giter Site logo

wordcounter's Introduction

NuGet version (English.WordCounting)

Word Counter

Counts up the number of times each word occurs (case insensitive) in a string of English text.

Basic Usage

var wordCounter = new WordCounter();
var results = wordCounter.Count("Hello World!");

Advanced Usage

Some of the logic for the word counter is customizable through the use of input parameters to the WordCounter constructor. The available options are:

ICharacterIdentification: Specifies what characters are considered to be part of a word.

IWordCountMethod: Used to figure out how the count should be incremented when a word is encountered. There are two available options. The default option just increments the count and the second option is IsPresentWordCountMethod which will cause the count to stop at one no matter how many times a word occurs.

mergeResults: If true results from each passed in string to WordCounter.Count will be merged together rather than all added to the same dictionary. This can be handy if you want to count how many input strings use a given word at least once.

wordcounter's People

Contributors

scotthaney 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.