ombre
New Member
Posts: 12
|
Post by ombre on Aug 1, 2018 9:32:01 GMT -5
It would be fun if LB could incorporate a dictionary function with which we could build different word programs. Small Basic by Microsoft has one but they stopped developing it and I prefer Liberty Basic
|
|
|
Post by tsh73 on Aug 2, 2018 9:39:49 GMT -5
|
|
|
Post by Rod on Aug 2, 2018 14:14:01 GMT -5
What I would say is that it is easy to get dictionary files of all types and sizes. But some are old, incomplete or full of non words like 3D. So it is a very imprecise question. What specific dictionary do you want, how up to date must it be? You have to recognise that maintaining dictionary’s takes huge time and effort and so few good ones are free.
Did you just want a hangman or crossword routine?
|
|
ombre
New Member
Posts: 12
|
Post by ombre on Aug 7, 2018 9:54:31 GMT -5
I would like to modify a game I find interesting. The game gives you a number of letters (usually six) with which you have to find a certain number of words of different lengths without repeating the letters supplied. The problem I want to solve with this game is that even if you give a word that exists in the dictionary, the program won’t accept it if it’s not in their predetermined list. The change I want to make is that the program would check the word in the dictionary and accept it if it exists in the language you are using (French for me).
|
|
|
Post by Rod on Aug 7, 2018 15:05:06 GMT -5
I am sure readers will find this interesting. We should leave aside the complexity of finding a dictionary and present examples of code that create words from a sobset of letters that match whatever SAMPLE dictionary we use.
|
|
|
Post by tsh73 on Aug 7, 2018 15:18:49 GMT -5
so we need to find simple scrabble wordlist in French. Now I do not know French but Wikipedia has this en.wikipedia.org/wiki/L'Officiel_du_jeu_Scrabble , start from here.
EDIT here some (pretty big I would say) lists www.gwicks.net/dictionaries.htm
Now, if someone finds some small dictionary like 100/300/1000 "french-english" or "german-english" pairs - I have a game idea around this. It better be just word pairs (I know it would be nowhere near accurate translation) so phrasebook wouldn't cut.
|
|
|
Post by Carl Gundel on Nov 7, 2023 9:02:33 GMT -5
It would be fun if LB could incorporate a dictionary function with which we could build different word programs. Small Basic by Microsoft has one but they stopped developing it and I prefer Liberty Basic Yeah, it's an interesting idea. Don't forget though that there is a dictionary feature implemented in Liberty BASIC which I wrote across several blog entries and which people here have used for projects. basicprogramming.blogspot.com/2016/
|
|
|
Post by Marco Kurvers on Nov 30, 2023 17:34:12 GMT -5
I saw the dictionary program. Interesting. I am busy to make a module with tuples, lists and dictionary's, but in a different way. I have made a SetTuple() function with a string parameter. The function converts the string to a tuple and returns the length of the tuple array. Then I used three arrays: a tuple array, a list array and a dictionary array. For the dictionary array, each element in the second index is a key and a value and the value is the tuple that can be used as a string in the dictionary array. To read all the words per element, you can use my function SetTuple() and you can get all the words out the tuple array that the function generates. My idea is to make a dataset with these technique. The SetTuple() function works correct and these can be used too if you will return more than one value in a function. The function works only if the values in a string has commas. Tuples in Python has the same result. I will make a new SetTuple() version, so that the commas can be used in the string without as a splitsymbol. For example: \, must say use the comma in the string and not as a splitter. Here is the function. Now, it works with one array. With more arrays, that coming soon. function SetTuple(tuple$) n$ = "" i = 1 do n$ = word$(tuple$, i, ",") i = i + 1 loop until n$ = "" redim tuple$(i - 1) n$ = "" i = 1 n$ = word$(tuple$, i, ",") do while n$ <> "" if n$ <> "" then tuple$(i) = n$ i = i + 1 end if n$ = word$(tuple$, i, ",") loop SetTuple = i - 1 end function Of course I make in de module subroutines and functions as methods to be able to work with lists and dictionary's. Methods as Append and Remove. Not for tuples, because they are immutable. You can see my work later on my forum: makurvers.freeforums.net/It is not ready yet.
|
|