indexphonemica / pshrimp-server

IPHON app backend
0 stars 1 forks source link

Don't repeat C/V/T count logic #23

Open defseg opened 4 years ago

defseg commented 4 years ago

In web_routes, languages#show and doculects#index repeat SQL for consonant, vowel, and tone queries. This could stand some DRYing, esp. since it could be nice to have a separate column for syllabic consonants. (Or suprasegmentals, if we want to try to handle those, but that's a little difficult under the current model.)