Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: school aliasing (LA <-> Los Angeles) #79

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

dexo568
Copy link
Contributor

@dexo568 dexo568 commented Jun 22, 2024

Deals with this issue from #72:

Schools like "East LA College" not showing up when you type in "East Los Angeles College"

I added an aliasing step in clean-school-data-tap.js, wherein anything with substring 'LA' or 'Los Angeles' will be given an 'alias' key with 'LA' written out as 'Los Angeles', or vice-versa. This allows better searchability, because searching eg "east los angeles college" will now index on "East LA College", because it has an alias of "East Los Angeles College".

Right now the only alias is LA <-> Los Angeles, but if there's any other aliases you'd like to include, feel free to add them in the alias_map in clean-school-data-tap.js.

Just an aside, I also slightly modified the package-json curl request syntax because curl throws a fit if you use single-quotes on Windows (AKA my dev machine). I think my modified CURLS should run on all platforms, but feel free to get rid of that part of the pull if it causes any problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant