Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

110
Visualizações
Humanizr.net ignore word/acronym

I am looping through a collection of strings and using Humanizr.net.

This is so that I can correct each string to sentence case.

For example.

        List<string> mystrings = new List<string>();
        mystrings.Add("my string one");
        mystrings.Add("my string two aBC");
        mystrings.Add("My String Three");

        foreach (string x in mystrings)
        {
            Console.WriteLine(x.Humanize());
        }

The output I am getting is this

        //what i am getting
        //----------------------
        //My string one
        //My string two a BC
        //My string three

I am wondering is it possible to add exclusions or words to ignore so that I get this

        //what i want
        //----------------------
        //My string two aBC

Thank You

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

In lieu of a answer I have come up with the following solution.

  1. Have a data store either Database or a Simple File (this is what i used in my case) that contains a list of know words and acronyms that I don't want Humanizer to convert along with what Humanizer converts it to.

  2. I then do a simple lookup and replace after the Humanizer call.

While not the most elegant solution it will work in my case for now.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda