I have a Postgresql table that has contents of a column either in English or Spanish Like so:
202707 Redness or swelling on the cheek.
202575 Preguntas acerca de medicamentos antivirales de la gripe.
202433 Sounds very sick or weak to the triager.
201505 El paciente quiere ser visto.
I would like to query such that I can get only the English rows or only the Spanish rows.
I have read a bit about PostgreSQL dictionaries, to_tsvector
and to_tsquery
and I feel like there should be a easy way to identify a string as a English/Spanish.