This package can extract proper nouns from texts. It takes a text string and can detect which words may be proper nouns of people, entities, etc. It uses some heuristics like the capitalization of the first word letter, the presence of people title preceding the nouns, etc. The class may consider consecutive proper names as a single proper name. The class assumes English by default but may be configured to work with other idioms.
git clone https://github.com/lzomedia/extract-nouns.git .
or
composer require lzomedia/extract-nouns
I have added some small test to check if system is working as described.
phpunit
If you find issues please contact me via Github or Email
This script was created by @Lzo Media
Copyright (C) [2020] [Lzo Media]
Everyone is permitted to copy and distribute verbatim or modified copies of this license document.
DON'T BE A DICK PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
Do whatever you like with the original work, just don't be a dick.
Being a dick includes - but is not limited to - the following instances:
1a. Outright copyright infringement - Don't just copy this and change the name. 1b. Selling the unmodified original with no work done what-so-ever, that's REALLY being a dick. 1c. Modifying the original work to contain hidden harmful content. That would make you a PROPER dick.
-
If you become rich through modifications, related works/services, or supporting the original work, share the love. Only a dick would make loads off this work and not buy the original work's creator(s) a pint.
-
Code is provided with no warranty. Using somebody else's code and bitching when it goes wrong makes you a DONKEY dick. Fix the problem yourself. A non-dick would submit the fix back.