optimus icon indicating copy to clipboard operation
optimus copied to clipboard

Add phone number, social security number, state, http code datatype detection

Open argenisleon opened this issue 3 years ago • 4 comments

Implement detection for:

  • [x] phone number
  • [x] social security number
  • [x] state
  • [x] http code
  • [ ] html

argenisleon avatar Aug 21 '20 14:08 argenisleon

Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.93. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

issue-label-bot[bot] avatar Aug 21 '20 14:08 issue-label-bot[bot]

Where the detected formats are country specific, please ensure the objects are labelled as such. The 303-555-2021 format is indicative of a +13035552021 phone number, but is specific to NANP. The WA state code is a US and an AU state code but they are different places.

lighthouseahoy avatar Sep 16 '21 11:09 lighthouseahoy

Hi @lighthouseahoy,

Have you checked https://github.com/daviddrysdale/python-phonenumbers?

What functionality from this library would like to see in Optimus?

argenisleon avatar Sep 17 '21 01:09 argenisleon

That looks like a thorough library. I would be most interested in simple validation. Which country is it in (blank on any error)? [Sorry, I worry when I see phone number validation because it is a lot more complicated than people realise.]

lighthouseahoy avatar Sep 20 '21 15:09 lighthouseahoy