Git Product home page Git Product logo

english-words-definitions-and-parts-of-speech's Introduction

English-Words-Definitions-and-Parts-of-Speech

A text file containing English words, along with the definition, parts of speech (noun,verb,adjective,etc.), and a link to the url where the definition was found.

A csv file that is sepetated with the '|' character due to commas causing problems when used the definitions. The order of the values goes:
word | part of speech | definition (according to dictionary.com) | url

When trying to find a file that had all of these things, I was unable to get everything I wanted. In order to achieve this, a python program was written to load in a word file with a list of words, go to dictionary.com/browse/EACHWORD, parse the html with the BeautifulSoup pyhton module, and store the definition and part of speech. The results are then written to a csv file as mentioned above.


The python file is also included, but in order for it to work, BeautifulSoup must be installed by using 'pip install beautifulsoup4'. you then need to change both the 'wordsIn' and 'dictionaryOut' variables to point to the location of your desired word file and the location you want the output. It is important to note that some words will not be found, and they are simply skipped in that case. Words will also be skipped if a non-supported charater is read in through the html. Sometimes the html is read defferently which causes the output to be funny, so double check your results. This obviously makes tons of web requests so speed to vary based on internet speed.
  • wordDictionary.txt contains the csv file of all the words, definitions, parts of speech, url
  • DictionaryFiller.py is the python file used to pull the information


Please note: This program is not perfect and will throw some errors sometimes that result in funky output to your output file. The words in wordDictionary.txt file are, for the most part, basic words. I wanted a bunch of words and definitions for a childrens hangman app I am making, so there isn't anything that complex.

english-words-definitions-and-parts-of-speech's People

Contributors

lorenza12 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.