C# Class FrequencyAnalyzer.IgnoreList

IgnoreList is used to find, load and save the ignore list. It also contains a default ignore list.
Mostrar archivo Open project: angusmacdonald/word-frequency-analyzer Class Usage Examples

Public Methods

Method Description
createIgnoreListFileIfNotExists ( ) : void
getIgnoreList ( ) : HashSet

Look for a word / character ignore list on disk at a specified location. If it is found, load it into memory and ignore all words / characters in the file. If it is not found a new ignore list will be created with a standard set of ignored characters.

Private Methods

Method Description
createInitialIgnoreList ( ) : HashSet

These are the default characters that are always escaped. Users can specify others in the ignore list.

getIgnoreListFilePath ( ) : string
ignoringNumbers ( ) : bool

Whether we are to ignore numbers in the frequency counting.

readIgnoreList ( ) : HashSet

Method Details

createIgnoreListFileIfNotExists() public static method

public static createIgnoreListFileIfNotExists ( ) : void
return void

getIgnoreList() public static method

Look for a word / character ignore list on disk at a specified location. If it is found, load it into memory and ignore all words / characters in the file. If it is not found a new ignore list will be created with a standard set of ignored characters.
public static getIgnoreList ( ) : HashSet
return HashSet