It is currently Mon Sep 23, 2019 9:10 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: [Module] SpellCheck (all OS)
PostPosted: Wed Jun 26, 2019 3:07 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 898
Location: Germany
SpellCheck - Module (all OS / 64Bit)

Check spelling.

Code:
; SpellCheck::AddToUserDictionary() - add a word to the user dictionary
; SpellCheck::ClearCheckedWords()   - clears all check words from map
; CorrectionSuggestions()           - returns a list with correction suggestions
; 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

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules (GitHub)

[Windows 10 x64] [PB V5.7x]


Last edited by Thorsten1867 on Sat Jul 27, 2019 7:08 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] SpellCheck (all OS)
PostPosted: Wed Jun 26, 2019 8:02 pm 
Offline
Enthusiast
Enthusiast

Joined: Mon Jan 20, 2014 6:32 pm
Posts: 240
This is nice.. But how can you show the correct suggestions?

Thanks

_________________
WARNING: I dont know what I am doing! I just put stuff here and there and sometimes like magic it works. So please improve on my code and post your changes so I can learn more. TIA


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] SpellCheck (all OS)
PostPosted: Sat Jun 29, 2019 9:45 am 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 898
Location: Germany
You can only check the spelling.
To find suggestions would require a completely different algorithm.

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules (GitHub)

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] SpellCheck (all OS)
PostPosted: Sat Jul 27, 2019 7:11 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 898
Location: Germany
Update: correction suggestions on the basis of the 'Damerau-Levenshtein-Distance'

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules (GitHub)

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye