Skip to content

Code refactoring to improved modularization for readability

Latest
Compare
Choose a tag to compare
@johnbumgarner johnbumgarner released this 27 May 15:47
· 6 commits to master since this release

Version 1.5.5 is a stable release.

Purpose: Code refactoring to improved modularization for readability and to reduce duplicated code related to error handling and querying.

Multiple modules were refactored to improve readability and reduce duplicated code. The following modules had new Classes added to obtain parts of speech and data extract using BeautifulSoup .

  • antonyms
  • dictionary
  • synonyms

The optional variable sources had been added to following modules. This variable allows you to refine the search sources to fit your requirements.

  • antonyms
  • dictionary
  • synonyms

Type hinting was validated in all functions within all query modules and all utilities modules. Additionally, all parameter names in every function or call have been added. This improves code readability and reduces ambiguity when reviewing the code.

Cloudflare verification was modified with a timeout feature. Using Collins Dictionary as a source can increase the runtime of WordHoard in the following modules.

  • antonyms
  • dictionary
  • synonyms

Signed-off-by: John Bumgarner [email protected]