C# Класс WikiFunctions.Parse.RegExTypoFix

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
resultArticleText string>.Dictionary
resultSummary string>.Dictionary

Открытые методы

Метод Описание
CreateRule ( string find, string replace ) : string

Creates a RETF rule with a placeholder name

CreateRule ( string find, string replace, string name ) : string

Creates a RETF rule

DetectTypo ( string articleText, string articleTitle ) : bool

Checks for known typos on the page

GetStatistics ( ) : List

Returns statistics of typos corrected in the past article

GetTypos ( ) : string>>.List

PerformTypoFixes ( string articleText, bool &noChange, string &summary, string articleTitle ) : string

Performs typo fixes against the article text in multi-threaded mode Typo fixes not performed if no typos loaded or any sic tags on page

RegExTypoFix ( ) : System

Default constructor, typos will be loaded on a new thread from the default location

RegExTypoFix ( ITyposProvider provider ) : System

Constructs an object that will load typos from the specified source in a separate thread

RegExTypoFix ( bool loadThreaded ) : System

Constructs an object that

RegExTypoFix ( bool loadThreaded, ITyposProvider provider ) : System

Default constructor, typos being loaded on separate thread is optional

Приватные методы

Метод Описание
MakeRegexes ( ) : void

TypoError ( string error ) : void

Описание методов

CreateRule() публичный статический Метод

Creates a RETF rule with a placeholder name
public static CreateRule ( string find, string replace ) : string
find string
replace string
Результат string

CreateRule() публичный статический Метод

Creates a RETF rule
public static CreateRule ( string find, string replace, string name ) : string
find string
replace string
name string
Результат string

DetectTypo() публичный Метод

Checks for known typos on the page
public DetectTypo ( string articleText, string articleTitle ) : bool
articleText string The wiki text of the article.
articleTitle string Title of the article
Результат bool

GetStatistics() публичный Метод

Returns statistics of typos corrected in the past article
public GetStatistics ( ) : List
Результат List

GetTypos() публичный Метод

public GetTypos ( ) : string>>.List
Результат string>>.List

PerformTypoFixes() публичный Метод

Performs typo fixes against the article text in multi-threaded mode Typo fixes not performed if no typos loaded or any sic tags on page
public PerformTypoFixes ( string articleText, bool &noChange, string &summary, string articleTitle ) : string
articleText string The wiki text of the article.
noChange bool True if no typos fixed
summary string Edit summary
articleTitle string Title of the article
Результат string

RegExTypoFix() публичный Метод

Default constructor, typos will be loaded on a new thread from the default location
public RegExTypoFix ( ) : System
Результат System

RegExTypoFix() публичный Метод

Constructs an object that will load typos from the specified source in a separate thread
public RegExTypoFix ( ITyposProvider provider ) : System
provider ITyposProvider Typos provider to use
Результат System

RegExTypoFix() публичный Метод

Constructs an object that
public RegExTypoFix ( bool loadThreaded ) : System
loadThreaded bool
Результат System

RegExTypoFix() публичный Метод

Default constructor, typos being loaded on separate thread is optional
public RegExTypoFix ( bool loadThreaded, ITyposProvider provider ) : System
loadThreaded bool Whether to load typos on a new thread
provider ITyposProvider Typos provider to use
Результат System

Описание свойств

resultArticleText публичное статическое свойство

public static Dictionary resultArticleText
Результат string>.Dictionary

resultSummary публичное статическое свойство

public static Dictionary resultSummary
Результат string>.Dictionary