
    aSi6              	       (    d e dedeeee    f   fdZy)textdeclared_datareturnc                    g }d}|j                  d      }|r,t        t        |            | vr|dz  }|j                  d       |j                  d      }|r#|dk  rd| v sd| v r|d	z  }|j                  d
       t	        |d      |fS )ug   
    Verifica coerência simples entre texto do documento e dados declarados.
    MVP heurístico.
    g      ?faturamento_mensalg?u=   Valores do documento não coerentes com faturamento declaradomeses_atividade   20202019g333333?z"Datas antigas para empresa recenteg        )getstrintappendmax)r   r   	problemasscorefaturamentomesess         XC:\Users\dkayr\PycharmProjects\Credit_Scoring_plataform\src\infra\documents\coherence.pycheck_coherencer      s     IE##$89Ks; ,SLE\]/0ET>Vt^SLEABuc?I%%    N)r   dicttuplefloatlistr    r   r   <module>r      s-   &# &d &uUDI=M7N &r   