Extract entities from your clipboard

copycat · lingua ●○○

Copy any text, then pull out phone numbers, emails, addresses, and dates in one command. Handy for grabbing contact info from emails or web pages without reaching for a regex.

$ copycat read public.utf8-plain-text | lingua entities --json
[{"type":"phone","value":"(718) 555-0142","range":[14,14]}, {"type":"email","value":"[email protected]","range":[45,17]}, {"type":"address","value":"350 5th Ave, New York, NY 10118","range":[81,31]}, {"type":"date","value":"June 15th","range":[116,9]}]
Requires: copycat, lingua