C# Class MarkovText.Markov

Mostra file Open project: yalue/Markov-Text Class Usage Examples

Public Methods

Method Description
Markov ( int randomnessLevel, string inputFileName, startForm controlForm ) : System
getRandomText ( int wordCount ) : string

Private Methods

Method Description
arrayToString ( List l ) : string
buildKey ( int startIndex ) : string
cleanupString ( string input ) : string
enforceQueueSize ( ) : void
getCurKey ( ) : string
getRandomWord ( ) : string
initKeys ( ) : void
moveNextKey ( string newWord ) : void
readWordGroups ( ) : void

Method Details

Markov() public method

public Markov ( int randomnessLevel, string inputFileName, startForm controlForm ) : System
randomnessLevel int
inputFileName string
controlForm startForm
return System

getRandomText() public method

public getRandomText ( int wordCount ) : string
wordCount int
return string