Any interest in a word dictionary API?

Discussion and feedback on Construct 2

Post » Fri Jul 11, 2014 3:01 pm

A challenge of any word game is dictionary use and validation. At the beginning of summer I put together bestwordplay.com, which is basically an anagraming tool with a dictionary back end -- if you explore around a minute there, you will get the idea.

My first game project I am making AJAX queries to configure game data such as letter frequency for random generation and word sets. The possibilities are many. Word validation, custom result sets, word and letter frequency analysis, boggle solving, anagraming, off the top of my head... The dictionaries could be varied, too. public domain 'Official Word Lists', common English, SOWPODS (which is cc licensed) , are readily available.

It occurred to me that something like this might be very useful to open up to other devs. (or I may just be an extreme word nerd.) ... I have not given much thought beyond this. So any feedback here is appreciated.


I found C2 because of my fascination with words and anagrams and I basically just wanted to make fun games to quiz myself and learn new anagrams for word gaming. C2 and 'game' dev is new to me, but I have been an owner of a small networking and hosting company for 18 years now, and am very familiar with database technologies.... and playing word games :-)

If you want to test, I have a demo anagram query here: http://bestwordplay.com/demoGetanagrams ... tters=EAST -- you can change the letters value and see your own results.
B
11
S
2
Posts: 86
Reputation: 1,001

Post » Sat Jul 12, 2014 2:19 pm

Just as I suspected ... I'm a nerd!
B
11
S
2
Posts: 86
Reputation: 1,001

Post » Sat Jul 12, 2014 2:54 pm

Other than the ability to get existing lists, or dictionaries, an api would be a bit of overkill as you can do quite a lot of generation in C2 already.
Especially since we now have regex.
Image ImageImage
B
168
S
50
G
163
Posts: 8,221
Reputation: 105,061

Post » Sat Jul 12, 2014 3:57 pm

I like your site.. pretty cool.. and a non obvious cheat for Scrabble!
B
88
S
29
G
14
Posts: 1,154
Reputation: 15,003

Post » Wed Jul 23, 2014 6:23 pm

Sorry for the late reply -- I thought I would get a notice of some sort if someone posted in my thread... and I just looked.

@newt good point, although regex will still be slow against a properly indexed database (and what exactly would your regex be, say, to find two or more 'A's and an 'E' anywhere in any word? -- here is my run against 45000 words ... so there might be some speed/simplicity. And size. but yeah, I was just thinking out loud, very well could be overkill...

I've yet to try more than a few hundred words at a time in C2, although I saw a post where someone was running with a 35K word set with no worries. And I personally found C2 is near instant with partial word matches for my in game 'hints'. I have a prototype of my C2 game here.

The smaller full English dictionary (OWL) is around 220K words. A lot of word info, such as prefixes and suffixes, anagrams are separate related fields in my db, which makes it very quick. I may play around with putting this stuff in arrays in C2 and see how it runs (some of the fastest stuff I've see was done with javascript(!) ... btw, I'm by no means a pro dev, so I may not know what I'm talking about -- it's just a newly discovered hobby for now. :-)

@jobel - thanks! ... I prefer to think of it as a 'training tool' instead of cheat ;-) ...

Cheers!
B
11
S
2
Posts: 86
Reputation: 1,001


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 3 guests