Skip to content

Commit

Permalink
New kind of Spanish society: SLP
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloCastellano committed Aug 1, 2015
1 parent 96bc907 commit ada4c6a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bormeparser/regex.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
SOCIEDADES = {'SA': 'Sociedad Anónima',
'SL': 'Sociedad Limitada',
'SLU': 'Sociedad Limitada Unipersonal',
'SLP': 'Sociedad Limitada Profesional',
'SRL': 'Sociedad de Responsabilidad Limitada',
'AIE': 'Agrupación de Interés Económico',
'COOP': 'Cooperativa',
Expand Down Expand Up @@ -78,7 +79,9 @@ def is_acto_cargo(data):
# TODO: Añadir otras sociedades menos usuales
def is_company(data):
""" Comprueba si es algún tipo de sociedad o por el contrario es una persona física """
siglas = [' SL', ' SA', ' AIE', ' SRL', ' SOCIEDAD LIMITADA', ' SOCIEDAD ANONIMA', ' SLU', ' COOP', ' SLL', ' SAL', ' SLNE']
siglas = list(SOCIEDADES.keys())
siglas.extend(['SOCIEDAD LIMITADA', 'SOCIEDAD ANONIMA'])
siglas = list(map(lambda x: ' %s' % x, siglas))
return any(data.endswith(s) for s in siglas)


Expand Down

0 comments on commit ada4c6a

Please sign in to comment.