GiLoWordsGamesUtils 1.0
Library useful to create word game apps, for any languages. Actually only English and Italian but I will add VERY SOON a method to import simple CSV file for any language
_______________________________________________________________
Upgrade to version 1.1
I'm added new features
_______________________________________________________________
Upgrade to version 1.3
I'm added new features and dictionary
donate at least 15€ and I will send you this library
Library useful to create word game apps, for any languages. Actually only English and Italian but I will add VERY SOON a method to import simple CSV file for any language
- Initialize
- SetItalian
To use the internal Italian vocabulary.
- SetEnglish
To use the internal English vocabulary.
- GetRandomWord(WordLength As Int) As String
Returns a WordLenght long random word pass -1 for any long
- WordExists(WordToSearch As String) As Boolean
Checks if a word exists (in the db, of course)
- FindAnagrams(Word As String) As List
Returns a list of anagrams of the given Word
- GetWordsFromLetters(Letters As String) As List
Returns a list of words containig the given Letters
- GetFilteredWords(filtro As String) As List
Returns a list of words using the given Filter.
Filter should include SQLite wildcards:
% represents zero, one, or multiple numbers or characters;
_ (underscore) represents a single character.
Example:
%a__l% returns example and other 2399 words
__a__le returns example and other 27 words
Filter should include SQLite wildcards:
% represents zero, one, or multiple numbers or characters;
_ (underscore) represents a single character.
Example:
%a__l% returns example and other 2399 words
__a__le returns example and other 27 words
- Size(FirstLetter As String) As Long
Returns a count of words starting with FirstLetter
Pass empty string for all words
Pass empty string for all words
Upgrade to version 1.1
I'm added new features
- AddingWordsFromList(wordlist As List)
To adding words in current DB from a List, one word for row
if you are using the internal dictionary this is changed
if you are using the internal dictionary this is changed
- SetCustomVocabulary(name As String)
To set the name for create a vocabulary, name is a DB name
- LoadCSVVocabulary(dir As String,fil As String,ForceNew As Boolean)
To fill the vocabulary from a csv file, one word for row, if ForceNew is True the previous dictionary words Will be deleted
- DeleteWords(FilterType As String, FilterValue As String) As Int
Delete Words WHIT SQL Filter
Filter Type as "=", "LENGHT", "LIKE"
Filter Value as numeric or letteral example
type value
= example delete 1 word
LENGHT >10 delete any words whit lenght>10 letters
LENGHT <9 delete any words whit lenghta<9 letters
LENGHT =7 delete any words whit lenght=7 letters
LIKE a% delete any words start whit a
return number of delete words
Filter Type as "=", "LENGHT", "LIKE"
Filter Value as numeric or letteral example
type value
= example delete 1 word
LENGHT >10 delete any words whit lenght>10 letters
LENGHT <9 delete any words whit lenghta<9 letters
LENGHT =7 delete any words whit lenght=7 letters
LIKE a% delete any words start whit a
return number of delete words
- RestoreDBIT
restore the original ITalian DB
- RestoreDBENG
restore the original ENGlish DB
_______________________________________________________________
Upgrade to version 1.3
I'm added new features and dictionary
- Levenshtein_distance(x As String, y As String) As Int
return Levenshtein distance, for more information see Wikipedia
- SetSpanish
To use the external spanish dictionary, this dictionary is downloaded at first use
- SuggestsCorrection(word As String) As List
for a mistaken word suggests a list of possible corrections
donate at least 15€ and I will send you this library
Last edited: