![]() |
BogaNet 1.4.0
|
Interface for bad word filters. More...
Public Member Functions | |
| void | Load (bool isLTR, Dictionary< string, string[]> dataDict) |
| Load sources from a given Dictionary. | |
| bool | LoadFiles (bool isLTR, params Tuple< string, string >[] files) |
| Load source files (CSV) from a given path. | |
| Task< bool > | LoadFilesAsync (bool isLTR, params Tuple< string, string >[] files) |
| Load source files (CSV) from a given path asynchronously. | |
| bool | LoadFilesFromUrl (bool isLTR, params Tuple< string, string >[] urls) |
| Load source files (CSV) from given URLs. | |
| Task< bool > | LoadFilesFromUrlAsync (bool isLTR, params Tuple< string, string >[] urls) |
| Load source files (CSV) from given URLs asynchronously. | |
| void | Add (bool isLTR, string srcName, params string[] words) |
| Adds a source with words. | |
Public Member Functions inherited from BogaNet.BWF.Filter.ISourceFilter | |
| delegate void | FilesLoaded (params Tuple< string, string >[] files) |
| Delegate for the load status of the files. | |
| bool | Remove (string srcName) |
| Removes a source and assigned data. | |
| bool | ContainsSource (string srcName) |
| Checks if a given source name exists in the filter. | |
| void | Clear () |
| Clears all sources. | |
Public Member Functions inherited from BogaNet.BWF.Filter.IFilter | |
| bool | Contains (string text, params string[]? sourceNames) |
| Searches for bad words in a text. | |
| List< string > | GetAll (string text, params string[]? sourceNames) |
| Searches for bad words in a text. | |
| string | ReplaceAll (string text, params string[]? sourceNames) |
| Searches and replaces all bad words in a text. | |
Properties | |
| char[] | ReplaceCharacters [get, set] |
| Replace characters for bad words. | |
| ReplaceMode | Mode [get, set] |
| Replace mode operations on the input string. | |
| bool | RemoveSpaces [get, set] |
| Remove unnecessary spaces between letters in the input string. | |
| int | MaxTextLength [get, set] |
| Maximal text length for the space detection. | |
| string | RemoveCharacters [get, set] |
| Remove unnecessary characters from the input string. | |
| bool | SimpleCheck [get, set] |
| Use simple detection algorithm (e.g. for Chinese, Japanese, Korean, Thai etc.). | |
Properties inherited from BogaNet.BWF.Filter.ISourceFilter | |
| int | Count [get] |
| Current count of sources from the filter. | |
| List< string > | SourceNames [get] |
| All source names of the current filter. | |
| bool | IsLoaded [get] |
| Is the filter loaded? | |
Additional Inherited Members | |
Events inherited from BogaNet.BWF.Filter.ISourceFilter | |
| FilesLoaded | OnFilesLoaded |
| Event triggered whenever the files are loaded. | |
Interface for bad word filters.
| void BogaNet.BWF.Filter.IBadWordFilter.Add | ( | bool | isLTR, |
| string | srcName, | ||
| params string[] | words ) |
Adds a source with words.
| isLTR | Is source written left-to-right? |
| srcName | Source name |
| words | Words for the source |
| ArgumentNullException |
| void BogaNet.BWF.Filter.IBadWordFilter.Load | ( | bool | isLTR, |
| Dictionary< string, string[]> | dataDict ) |
Load sources from a given Dictionary.
| isLTR | Is source written left-to-right? |
| dataDict | Dictionary to load |
returns>True if the operation was successful
| Exception |
Implemented in BogaNet.BWF.Filter.BadWordFilter.
| bool BogaNet.BWF.Filter.IBadWordFilter.LoadFiles | ( | bool | isLTR, |
| params Tuple< string, string >[] | files ) |
Load source files (CSV) from a given path.
| isLTR | Is source written left-to-right? |
| files | Files to load (Item1 = source name, Item2 = file) |
returns>True if the operation was successful
| Exception |
Implemented in BogaNet.BWF.Filter.BadWordFilter.
| Task< bool > BogaNet.BWF.Filter.IBadWordFilter.LoadFilesAsync | ( | bool | isLTR, |
| params Tuple< string, string >[] | files ) |
Load source files (CSV) from a given path asynchronously.
| isLTR | Is source written left-to-right? |
| files | Files to load (Item1 = source name, Item2 = file) |
returns>True if the operation was successful
| Exception |
Implemented in BogaNet.BWF.Filter.BadWordFilter.
| bool BogaNet.BWF.Filter.IBadWordFilter.LoadFilesFromUrl | ( | bool | isLTR, |
| params Tuple< string, string >[] | urls ) |
Load source files (CSV) from given URLs.
| isLTR | Is source written left-to-right? |
| urls | URLs of files to load (Item1 = source name, Item2 = file) |
returns>True if the operation was successful
| Exception |
Implemented in BogaNet.BWF.Filter.BadWordFilter.
| Task< bool > BogaNet.BWF.Filter.IBadWordFilter.LoadFilesFromUrlAsync | ( | bool | isLTR, |
| params Tuple< string, string >[] | urls ) |
Load source files (CSV) from given URLs asynchronously.
| isLTR | Is source written left-to-right? |
| urls | URLs of files to load (Item1 = source name, Item2 = file) |
returns>True if the operation was successful
| Exception |
Implemented in BogaNet.BWF.Filter.BadWordFilter.
|
getset |
Maximal text length for the space detection.
Implemented in BogaNet.BWF.Filter.BadWordFilter.
|
getset |
Replace mode operations on the input string.
Implemented in BogaNet.BWF.Filter.BadWordFilter.
|
getset |
Remove unnecessary characters from the input string.
Implemented in BogaNet.BWF.Filter.BadWordFilter.
|
getset |
Remove unnecessary spaces between letters in the input string.
Implemented in BogaNet.BWF.Filter.BadWordFilter.
|
getset |
Replace characters for bad words.
Implemented in BogaNet.BWF.Filter.BadWordFilter.
|
getset |
Use simple detection algorithm (e.g. for Chinese, Japanese, Korean, Thai etc.).
Implemented in BogaNet.BWF.Filter.BadWordFilter.