nkowaokwu / igbo_api

An API exposing Igbo words, definitions, and more
https://igboapi.com
Apache License 2.0
316 stars 141 forks source link

fix: check to see if word is english before searching #746

Closed ijemmao closed 1 year ago

ijemmao commented 1 year ago

Describe your changes

Uses the is-english npm package to check whether the search word is in English or not.

Issue ticket number and link

N/A

Motivation and Context

A lot of unrelated words would be returned when simple English terms were searched by users (i.e. apricot, beautiful, thought, etc.) With this change, only relevant word entries will be returned to the user.

How Has This Been Tested?

Locally on my machine.

Screenshots (if appropriate):

N/A