Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
2

How do I get access to the English Dictionary instead of putting each word in a single array? [closed]

Asked by 3 years ago
Edited 3 years ago

I am about to make a game that acts like Word Bomb, but with 100 players. But Word Bomb uses a English Dictionary so that the system can know if the word contains for example this (la, po, bo, pol, bam, wer, or whatever). Any tips instead of waiting my time putting every SINGLE WORD MANUALLY in the English Dictionary?

Closed as Not Constructive by JesseSong

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

3 answers

Log in to vote
0
Answered by
jwklong 32
3 years ago

Here is a link to a Google Document containing all words in English that are separated by commas. Hope this helped you! https://docs.google.com/document/d/1QijkAGfnCLMb_aaZO0x6ErahTTnjEYGWIujj_N-2T_8

0
bruh, the words aren't in quotes and there is a header that it forces me to lag my laptop YamadaRikkuDev 35 — 3y
Ad
Log in to vote
0
Answered by 3 years ago

You might want to use a world-renowned dictionary. Try the Oxford Dictionaries API: https://developer.oxforddictionaries.com/

0
excuse me, how do you do this in lua? YamadaRikkuDev 35 — 3y
Log in to vote
0
Answered by
imKirda 4491 Moderation Voter Community Moderator
3 years ago
Edited 3 years ago

You can try Datamuse API because even description of it says that it's used for word games, you can send 100 000 requests per day on it. I never did this before but using API like this is quite simple. You would need to enabled HTTP requests in studio. I really have no idea how to use this exact api but on the site it's explained so you can read it and get what you need. Basically how you use it is

local HTTP = game:GetService("HttpService") -- you need the service

Then you need link you will be requesting, all the links you can use are on the site, in this case i found rel_cns which as site says returns words that have Consonant match, let's put word "Hello" there

local Link = "https://api.datamuse.com/words?rel_cns=hello"

Then you need to request it

local Response = HTTP:RequestAsync({
    Url = Link,
    Method = "GET"
})

Here, Url is the link you will be requesting, it MUST be named Url, Method must also be given, Method also MUST be named Method. There are methods like: "GET", "POST", and some more. GET means that we are getting data from the api, POST means we are posting it but we are not doing that so use "GET". Now if everything worked, it will return a table. you can get the result by doing

local Words = Response.Body

Here is what the table it returns looked like in my case

 StatusMessage OK
  Success true
  StatusCode 200
  Body [{"word":"hollow","score":1808,"numSyllables":2},{"word":"halo","score":1486,"numSyllables":2},{"word":"holy","score":1259,"numSyllables":2},{"word":"holler","score":1127,"numSyllables":2},{"word":"holly","score":956,"numSyllables":2},{"word":"hallow","score":934,"numSyllables":2},{"word":"wholly","score":858,"numSyllables":2},{"word":"hula","score":557,"numSyllables":2},{"word":"howler","score":541,"numSyllables":2},{"word":"highly","score":520,"numSyllables":2},{"word":"holey","score":464,"numSyllables":2},{"word":"holla","score":437,"numSyllables":2},{"word":"hola","score":430,"numSyllables":2},{"word":"hallo","score":426,"numSyllables":2},{"word":"heller","score":422,"numSyllables":2},{"word":"healer","score":405,"numSyllables":2},{"word":"hilo","score":334,"numSyllables":2},{"word":"halloo","score":333,"numSyllables":2},{"word":"haler","score":304,"numSyllables":2},{"word":"haller","score":277,"numSyllables":2},{"word":"hilar","score":275,"numSyllables":2},{"word":"hilly","score":268,"numSyllables":2},{"word":"halley","score":255,"numSyllables":2},{"word":"halle","score":254,"numSyllables":2},{"word":"hailey","score":239,"numSyllables":2},{"word":"haley","score":236,"numSyllables":2},{"word":"heeler","score":224,"numSyllables":2},{"word":"hauler","score":217,"numSyllables":2},{"word":"hollo","score":202,"numSyllables":2},{"word":"halo-","score":164,"numSyllables":2},{"word":"hullo","score":163,"numSyllables":2},{"word":"hurly","score":160,"numSyllables":2},{"word":"hollar","score":151,"numSyllables":2},{"word":"hurley","score":150,"numSyllables":2},{"word":"hallah","score":127,"numSyllables":2},{"word":"huller","score":124,"numSyllables":2},{"word":"hailer","score":116,"numSyllables":2},{"word":"hooghly","score":106,"numSyllables":2},{"word":"hiller","score":102,"numSyllables":2},{"word":"hurler","score":98,"numSyllables":2},{"word":"haily","score":94,"numSyllables":2},{"word":"haile","score":93,"numSyllables":2},{"word":"howley","score":90,"numSyllables":2},{"word":"helly","score":84,"numSyllables":2},{"word":"healy","score":81,"numSyllables":2},{"word":"holley","score":81,"numSyllables":2},{"word":"hooley","score":80,"numSyllables":2},{"word":"hayley","score":72,"numSyllables":2},{"word":"hallie","score":68,"numSyllables":2},{"word":"healey","score":68,"numSyllables":2},{"word":"hilla","score":68,"numSyllables":2},{"word":"halla","score":67,"numSyllables":2},{"word":"hully","score":59,"numSyllables":2},{"word":"high-low","score":55,"numSyllables":2},{"word":"holo-","score":51,"numSyllables":2},{"word":"hawley","score":41,"numSyllables":2},{"word":"hylo-","score":37,"numSyllables":2},{"word":"halah","score":33,"numSyllables":2},{"word":"hollie","score":30,"numSyllables":2},{"word":"hilley","score":25,"numSyllables":2},{"word":"hiley","score":20,"numSyllables":2},{"word":"hally","score":16,"numSyllables":2},{"word":"helie","score":15,"numSyllables":2},{"word":"highley","score":10,"numSyllables":2},{"word":"hiler","score":10,"numSyllables":2},{"word":"hyler","score":8,"numSyllables":2},{"word":"heli-","score":7,"numSyllables":2},{"word":"hohler","score":5,"numSyllables":2},{"word":"huyler","score":5,"numSyllables":2},{"word":"heiler","score":4,"numSyllables":2},{"word":"wholey","numSyllables":2}]
  Headers table: 0xdf2732f0464dac07

This exact rel_cns won't work in Word Bomb but if you search for some other methods on the website, you could find exactly what you need.