Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardojorgerm authored Apr 7, 2024
1 parent 5ce5e16 commit 7251cbd
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions services/makeTTS.js
Original file line number Diff line number Diff line change
Expand Up @@ -659,10 +659,14 @@ module.exports = (p, modes = {}) => {
thisString = thisString.replace(regex, 'Quinta do Conde');
regex = /(?<=Egas\s)\s*\bM[o]?[n]?\s/giu;
thisString = thisString.replace(regex, 'Moniz ');
regex = /\b(C[a]?[l]?[\.]?)(\s)(?=Gulb)/giu;
regex = /\b(C[a]?[l]?[\.]?)[\s]+(?=Gulb)/giu;
thisString = thisString.replace(regex, 'Calouste ');
regex = /(?<=Calouste\s)\bG(ulb|ulbenk)?\b/giu;
thisString = thisString.replace(regex, 'Gulbenkian');
regex = /(?<=Calouste)[\s]+G(ulb|ulbenk)?\b/giu;
thisString = thisString.replace(regex, ' Gulbenkian');
regex = /\b(M[a]?[n]?[\.]?)[\s]+(?=Alped)/giu;
thisString = thisString.replace(regex, 'Manuel ');
regex = /(?<=Manuel)[\s]+Alped(r|rinh)?\b/giu;
thisString = thisString.replace(regex, ' Alpedrinha');
regex = /\b(L[uú]?[íi]?[sz]?[\.]?)(\s)(?=Cam)/giu;
thisString = thisString.replace(regex, 'Luís ');
regex = /(?<=Luís)[\s]*(de)?[\s]*Cam[õo]?(e)?[s]?[\.]?\b/giu;
Expand Down

0 comments on commit 7251cbd

Please sign in to comment.