How to determine when a string has a common business suffix (for example, "Inc.", "LLC", "GmbH")

I would like to find a library (Ruby gem) to determine when a string contains common suffixes used in company names (e.g. Inc, LLC, LLP, GmbH, PC, etc.). My goal is to identify when we have a company name compared to a human name; in particular, we do not want to consider the name of the company "Company, Inc" as well as the name of the person "Last, First", for example. we do not want to change the company name to "Inc Company".

I found a Wikipedia page that appears to document various types of companies, but I have not found any gems or just a simple list.

The first choice is to find the gem, the second is a set of regular expression strings and the last list of suffixes.

+4
source share
1 answer

The compat_company gem has an IsCompanyWord function that recognizes certain words that are commonly used in company names.

You can check it out here !

Hope this helps!

0
source

Source: https://habr.com/ru/post/1496449/


All Articles