kiyanaw / kiyanaw-backend

kiyânaw Transcribe source code and infrastructure.
https://app.kiyanaw.net/
3 stars 0 forks source link

Word look-up via REGEX bottom corner #59

Open bengodden opened 4 years ago

bengodden commented 4 years ago

Create a tool that looks up words in the index by searching a given string - like grep. Three boxes laid out like this:

Initial Medial Final (^string) (box two) (box three$)

Input boxes are blank but any typing automatically drops down list of possibilities (similar to creedictionary.com)

Use Rules: Try ē = ê = e, ō = ô = o, etc

"Enter" locks the visible list for scrolling Include minimize arrow on

bengodden commented 4 years ago

Would be neat to also plumb in the morpheme editor capabilities once we get that underway

aaronfay commented 4 years ago

The easiest implementation (that should accommodate your 3 cases) would be to use the wildcard search in ES:

Initial Medial Final (^string) (box two) (box three$)

Something like:

string* (initial search)
*string* (medial search)
*string (final search)

It could also handle cases where you weren't sure of the middle of a word (or a vowel length):

// eg searching for wihtamawêw
w*tamawêw

This should be pretty easy to implement, thanks for the feedback 🙏