public static double getSimilarityOfChar(char a, char b, double rate = 1.0) { if (a == b) { return(rate); } return(CharacterSimilarityHelper.getSimilarityFor(a, b) * rate); }
public ContractNote(MainWindow mainWindow) { this.mainWindow = mainWindow; pdfParser = new PdfParser(this); contractNoteTemplateManager = new ContractNoteTemplateManager(this); contractNoteItemManager = new ContractNoteItemManager(this); ruleManager = new RuleManager(); CharacterSimilarityHelper.loadDictionary(); }