Extract Person Name

node v8.16.0
version: 1.0.0
When the person name column in your database table has title, degree, etc. sticking on, here is a simple script to extract the names only!
// Load wink-nlp-utils var nlp = require( 'wink-nlp-utils' ); // Clean up and extract just the name: var name = nlp.string.extractPersonsName( 'Dr. Sarah Connor M. Tech., PhD. - Machine Learning' ); console.log( name );

no comments

    sign in to comment