I have text where I need to search by names. The text has no pattern. The list of names is an array. So far I have managed to do it normally, but I came across a situation where a given name had a variant and the same was not found - because I am doing a literal search. Example:
$nomes = array("João da Silva","Antônio de Souza Santos","Mário Faria de Oliveira");
As I said, my search is working. But if there is a case where the name "Antônio de Souza Santos" appear in the text as "Antônio de Souza" or "Antônio Santos", I can not find.
I tried to apply this solution: Filter word in a text with php , but I did not get much success. Anyone have a suggestion to resolve this?
An example of the text I need to search:
Date of Publication: 02/07/2015 1st CIRCLE SQUARE File of 06/30/2015 JUDGE (A) OWNER: Nelson Marques da Silva JUDGE (A) SUBSTITUTE (A): Adriani Freire Diniz Garcia Denise Lucio Tavela Paulo Cássio Moreira JUDGE (A) PLANTONISTA: Flávio Branquinho da Costa Dias João Batista Mendes Filho Marcos Irany Rodrigues da Conceição Author (s): Alan Menezes Sidney ORDINARY PROCEDURE 00119 - 0055452.27.2011.8.13.0016 Author: Carlos Roberto Bertholucci; Defendant: Banco Bradesco Financiamentos S.A. = > View of the defendant. Term of 0015 day (s). The defendant shall be summoned to collect the amount of R $ 290.03, as costs, of a Judicial Fee, a criminal fine and other procedural expenses due to the State, within a period of 15 (fifteen) days, under penalty of registration of the debit, plus a 10% (ten percent) fine, in active debt and registration in the Cadastro Informativo de Inadimplência in relation to the Public Administration of the State of Minas Gerais CADIN-MG and the extrajudicial protest of the Certificate of Active Debt, by the Attorney General of the State AGE. Advocate - Clovis Roberto Czegelski, Graciela Camargo Teixeira Rios, Matheus Siqueira de Alvarenga, Marta Aparecida de Castro Martiniano, Carlos Roberto de Carvalho Junior, Luciana Pereira, Francine Lopes Carvalho, Sebiana Vitale Cruz, Thaisse Christiane Schreier, Guilherme Octavio Santos Rodrigues, Marina Guimaraes Ribeiro, Fabiano Toledo Reis Souza, Leonardo Alves Bechara.
Note: I'm using PHP.