Skip to main content

A simple CLI tool to decapitalize spanish strings.

Project description

Decapitalize spanish words.

This utility is only for spanish words and contains a spanish dictionary of words with dyacritics.

Use Case.

This tool is designed to restore the correct spelling of names and surnames collected in the official systems of many Spanish-speaking countries. Traditionally, words are stored in capital letters and without accents or other non-ASCII characters. Since this transformation is destructive, it is not easy to obtain the correct spelling of these records.

Description

decapitaliza uses a dictionary of terms with Spanish spelling and a simple text analysis mechanism adapted to the processing of proper names and surnames. It capitalizes words according to common rules for first and last names. "decapitaliza" includes a command line tool that allows you to perform the following functions:

  • Generate custom dictionaries: import correctly spelled terms from a CSV with correct words. If no external dictionary is specified, a pre-generated dictionary is used. The included dictionary can be extended with additional words.
  • Transforms the words of a text (separated by spaces).
  • Processes a CSV by transforming the indicated columns.

Caso de uso.

Esta herramienta está diseñada para restaurar la ortografía correcta de los nombres y apellidos recogidos en los sistemas oficiales de muchos países de habla hispana. Tradicionalmente, las palabras se guardan en mayúsculas y sin tildes ni otros caracteres no ASCII. Como esta transformación es destructiva, no es sencillo obtener la correcta ortografía de esos registros.

Funcionamiento

decapitaliza utiliza un diccionariode términos con ortografia del español y un mecanismo simple de análisis de textos adaptado al procesado de nombres propios y apellidos. Capitaliza las palabras de acuerdo a las reglas comunes para nombres y apellidos. "decapitaliza" incluye una herramienta para línea de comandos que permite realizar las siguientes funciones:

  • Genera diccionarios a la medida: importa términos con ortografía correcta a partir de un CSV con palabras correctas. Si no se indica un diccionario externo se utiliza un diccionario pregenerado. Se puede ampliar el diccionario incluido con palabras adicionales.
  • Transforma las palabras de un texto (separadas por espacios)
  • Procesa un CSV transformando las columnas que se indiquen.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

decapitaliza-0.0.3.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

decapitaliza-0.0.3-py2.py3-none-any.whl (1.6 MB view details)

Uploaded Python 2Python 3

File details

Details for the file decapitaliza-0.0.3.tar.gz.

File metadata

  • Download URL: decapitaliza-0.0.3.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.23.3

File hashes

Hashes for decapitaliza-0.0.3.tar.gz
Algorithm Hash digest
SHA256 9eaed4273ce0d3317f7f2b94c7c7a210230345b3b9f47b9417e0aa8c5a277404
MD5 6d351127166a95a8d03e8a65d1034831
BLAKE2b-256 2ee58307b09da73e33822dd30ea81ee11be925b9b594b06e04d87899c45732b5

See more details on using hashes here.

File details

Details for the file decapitaliza-0.0.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for decapitaliza-0.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9c075422658928067f1e0ceccacefa21a346907ec16b8e7e37a1f3cd002bc105
MD5 35237a985ad29c9f49b71e1227d3fb02
BLAKE2b-256 b42dc24540f6f9edb3cfaee5599b929a88329d0db18b6ee373613789185f0917

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page