| 968 | |
| 969 | /** |
| 970 | * Define number of words when SCAYT starts to check if there are too many misspellings in text. |
| 971 | * |
| 972 | * @name scaytConfig.minCheckIncorrectWord |
| 973 | * @type Number |
| 974 | * @default 10 |
| 975 | * @example |
| 976 | * scaytConfig = { minCheckIncorrectWord: 20 }; |
| 977 | */ |
| 978 | |
| 979 | /** |
| 980 | * Define the maximum possible percent of incorrect words in text. |
| 981 | * If (number of incorrect words)/(number of all words) >maxPercentIncorrectWord, |
| 982 | * then SCAYT becomes disabled. |
| 983 | * |
| 984 | * @name scaytConfig.maxPercentIncorrectWord |
| 985 | * @type Number |
| 986 | * @default 0.8 |
| 987 | * @example |
| 988 | * scaytConfig = { maxPercentIncorrectWord: 0.4 }; |
| 989 | */ |
| 990 | |
| 991 | /** |
| 992 | * Define number of words when SCAYT starts to check if there are too many misspellings in a query to server. |
| 993 | * |
| 994 | * @name scaytConfig.minCheckIncorrectWordInQuery |
| 995 | * @type Number |
| 996 | * @default 60 |
| 997 | * @example |
| 998 | * scaytConfig = { minCheckIncorrectWordInQuery: 100 }; |
| 999 | */ |
| 1000 | |
| 1001 | /** |
| 1002 | * Define the maximum possible percent of incorrect words in a query to server. |
| 1003 | * If (number of incorrect words in query)/(number of all words in query) >maxPercentIncorrectWordInQuery, |
| 1004 | * then SCAYT becomes disabled. |
| 1005 | * |
| 1006 | * @name scaytConfig.maxPercentIncorrectWordInQuery |
| 1007 | * @type Number |
| 1008 | * @default 0.8 |
| 1009 | * @example |
| 1010 | * scaytConfig = { maxPercentIncorrectWordInQuery: 0.4 }; |
| 1011 | */ |
| 1012 | |
| 1013 | /** |
| 1014 | * Define the maximum number of symbols in text. |
| 1015 | * If it's greater than maxSizeMarkup, SCAYT becomes disabled. |
| 1016 | * |
| 1017 | * @name scaytConfig.maxSizeMarkup |
| 1018 | * @type Number |
| 1019 | * @default 6000 |
| 1020 | * @example |
| 1021 | * scaytConfig = { maxSizeMarkup: 50000 }; |
| 1022 | */ |