C# 클래스 WikiFunctions.Parse.TypoGroup

Represents a group of similar typo regexes
파일 보기 프로젝트 열기: reedy/AutoWikiBrowser 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
GroupSize int
Statistics List
Typos string>>.List

공개 메소드들

메소드 설명
Add ( string typo, string replacement ) : void

Adds one typo regex to the list

FixTypos ( string &articleText, string &summary, string articleTitle, string originalArticleText ) : void

Fixes typos

FixTypos2 ( string articleText, string summary, string articleTitle, string originalArticleText ) : void
IsSuitableTypo ( string typo ) : bool

Returns whether typo is sutable for group: not suitable if Allow regex doesn't match typo, or Disallow regex matches typo

MakeGroups ( ) : void

Makes grouped regexes

TypoGroup ( int groupSize, string match, string dontMatch, string prefix, string postfix ) : System

Creates a group that holds similar typos

비공개 메소드들

메소드 설명
FixTypo ( string &articleText, string &summary, string>.KeyValuePair typo, string articleTitle ) : void

Applies a given typo fix to the article, provided the typo does not also match the article title Updates edit summary based on the first match (value and replacement) of the typo and the total number of replacements

FixTypos ( string &articleText, string &summary, string articleTitle ) : void

메소드 상세

Add() 공개 메소드

Adds one typo regex to the list
public Add ( string typo, string replacement ) : void
typo string
replacement string
리턴 void

FixTypos() 공개 메소드

Fixes typos
public FixTypos ( string &articleText, string &summary, string articleTitle, string originalArticleText ) : void
articleText string The wiki text to update
summary string The edit summary of the page changes
articleTitle string The title of the wiki page
originalArticleText string The wiki text of the page, without any typo fixes applied
리턴 void

FixTypos2() 공개 메소드

public FixTypos2 ( string articleText, string summary, string articleTitle, string originalArticleText ) : void
articleText string
summary string
articleTitle string
originalArticleText string
리턴 void

IsSuitableTypo() 공개 메소드

Returns whether typo is sutable for group: not suitable if Allow regex doesn't match typo, or Disallow regex matches typo
public IsSuitableTypo ( string typo ) : bool
typo string
리턴 bool

MakeGroups() 공개 메소드

Makes grouped regexes
public MakeGroups ( ) : void
리턴 void

TypoGroup() 공개 메소드

Creates a group that holds similar typos
public TypoGroup ( int groupSize, string match, string dontMatch, string prefix, string postfix ) : System
groupSize int Typos in a batch
match string Regex each typo should match, its first group will be used for extraction
dontMatch string Regex each typo shouldn't match
prefix string
postfix string
리턴 System

프로퍼티 상세

GroupSize 공개적으로 프로퍼티

public int GroupSize
리턴 int

Statistics 공개적으로 프로퍼티

public List Statistics
리턴 List

Typos 공개적으로 프로퍼티

public List> Typos
리턴 string>>.List