Page 1 of 1

[Module] SpellCheck (all OS)

Posted: Wed Jun 26, 2019 3:07 pm
by Thorsten1867
SpellCheck - Module (all OS / 64Bit)

Check spelling & suggest corrections (Damerau-Levenshtein-Distance)

Code: Select all

; SpellCheck::AddToUserDictionary()   - add a word to the user dictionary
; SpellCheck::ClearCheckedWords()     - clears all check words from map
; SpellCheck::CorrectionSuggestions() - returns a list with correction suggestions (Damerau-Levenshtein-Distance)
; SpellCheck::FreeDictionary()        - removes dictionary from memory
; SpellCheck::LoadDictionary()        - loads a dictionary
; SpellCheck::Query()                 - returns whether a word is right, misspelled or unknown.
; SpellCheck::SaveUserDictionary()    - saves user dictionary
; SpellCheck::Text()                  - checks a text for spelling mistakes
; SpellCheck::Word()                  - checks if a word is spelled correctly
Download: SpellCheckModule.pbi

Re: [Module] SpellCheck (all OS)

Posted: Wed Jun 26, 2019 8:02 pm
by vwidmer
This is nice.. But how can you show the correct suggestions?

Thanks

Re: [Module] SpellCheck (all OS)

Posted: Sat Jun 29, 2019 9:45 am
by Thorsten1867
You can only check the spelling.
To find suggestions would require a completely different algorithm.

Re: [Module] SpellCheck (all OS)

Posted: Sat Jul 27, 2019 7:11 pm
by Thorsten1867
Update: correction suggestions on the basis of the 'Damerau-Levenshtein-Distance'

Re: [Module] SpellCheck (all OS)

Posted: Mon Jul 19, 2021 6:13 pm
by jacdelad
I may be stupid, but trying to start it tells me "DamerauLevenshteinDistance" is not a function, array etc.
And I can't find the function in the source. Do I need any addon?

Re: [Module] SpellCheck (all OS)

Posted: Tue Sep 03, 2024 3:30 am
by Quin
jacdelad wrote: Mon Jul 19, 2021 6:13 pm I may be stupid, but trying to start it tells me "DamerauLevenshteinDistance" is not a function, array etc.
And I can't find the function in the source. Do I need any addon?
Sorry to revive such an old thread, but this stumped me today ,and I just found the solution, so thought I'd share for anyone in the future. viewtopic.php?p=539717&hilit=DamerauLevenshtein Distance#p539717

Re: [Module] SpellCheck (all OS)

Posted: Tue Sep 03, 2024 10:41 am
by Thorsten1867
There was apparently a conflict during synchronisation and the procedures are missing from the file.

I have uploaded the correct file again and hope it works now.

Re: [Module] SpellCheck (all OS)

Posted: Tue Sep 03, 2024 1:05 pm
by Quin
Thorsten1867 wrote: Tue Sep 03, 2024 10:41 am There was apparently a conflict during synchronisation and the procedures are missing from the file.

I have uploaded the correct file again and hope it works now.
Even better, thank you! :)

Re: [Module] SpellCheck (all OS)

Posted: Tue Sep 03, 2024 3:16 pm
by jacdelad
Finally, an answer. :D

Re: [Module] SpellCheck (all OS)

Posted: Thu Sep 05, 2024 2:58 pm
by Quin
Hi,
Just tried to redownload the file, and it seems to still have the same problem. The page says it was last modified in 2019.

Re: [Module] SpellCheck (all OS)

Posted: Thu Sep 05, 2024 3:32 pm
by Thorsten1867
Sorry, had only updated GIT-Hub.
Hope the download works now.

Re: [Module] SpellCheck (all OS)

Posted: Thu Sep 05, 2024 3:46 pm
by Quin
It all works now! Thanks 8)

Re: [Module] SpellCheck (all OS)

Posted: Fri Sep 06, 2024 4:40 pm
by Quin
Feature request: CatchDictionary(*Buffer, Size)
for easily embedding dictionaries in DataSections etc.