Y
Yvon Thoraval
Recently, i get a vintage list (more than 500 items) with poor typo, for
example, i've :
Côte de beaune-villages
instead of :
Côte de Beaune-Villages
Crémant d'alsace
instead of :
Crémant d'Alsace
i wonder of the way to change lower to upper case and also of
a regex able to do the trick.
something like :
every letter following a " ", "-" or "'" should be upper if not
belonging to a black list of words :
black_list = %w{d de du la le sec sur entre etc...}
example, i've :
Côte de beaune-villages
instead of :
Côte de Beaune-Villages
Crémant d'alsace
instead of :
Crémant d'Alsace
i wonder of the way to change lower to upper case and also of
a regex able to do the trick.
something like :
every letter following a " ", "-" or "'" should be upper if not
belonging to a black list of words :
black_list = %w{d de du la le sec sur entre etc...}