<commit_before>//TODO: parseName
//<NAME>, CAI, CES, CAGA
//John (Johnnie) Doe
//John "Johnnie" Doe

//TODO: getUsableName(str, idx)
//<NAME> & <NAME>
//<NAME>, Senior Whatever


var chai = require('chai')
    , expect = chai.expect
    , human = require('..');


// `describe` makes a "suite" of tests; think of them as a group.
describe('Parsing names', function() {

    var names = [
        {
            name: 'Mr. <NAME>',
            result: {
                salutation: 'Mr.',
                firstName: 'William',
                middleName: 'R.',
                lastName: 'Hearst',
                suffix: 'III',
                fullName: 'Mr. <NAME>, III'
            }
        },{
            name: '<NAME>',
            result: {
                firstName: 'William',
                lastName: 'Hearst',
                middleName: 'Randolph',
                fullName: '<NAME>'
            }
        }, {
            name: '<NAME>',
            result: {
                firstName: 'William',
                lastName: '<NAME>',
                middleName: 'R.',
                fullName: '<NAME>'
            }
        }, {
            name: 'Mr. <NAME>',
            result: {
                salutation: 'Mr.',
                firstName: 'William',
                suffix: 'III',
                lastName: 'De La Cruz',
                middleName: 'R.',
                fullName: 'Mr. <NAME>ruz III'
            }
        }, {
            name: '<NAME>',
            result: {
                firstName: 'William',
                lastName: '<NAME>',
                fullName: '<NAME>'
            }
        }, {
            name: '<NAME>',
            result: {
                firstName: 'William',
                lastName: '<NAME>',
                fullName: '<NAME>'
            }
        }, {
            name: '<NAME>',
            result: {
                firstName: 'William',
                lastName: 'Hearst',
                fullName: '<NAME>'
            }
        }, {
            name: '<NAME>',
            result: {
                firstName: 'William',
                suffix: 'Jr',
                lastName: 'Hearst',
                fullName: '<NAME>r'
            }
        }, {
            name: '<NAME>',
            result: {
                firstName: 'William',
                suffix: 'Jr',
                lastName: 'Hearst',
                fullName: '<NAME>r'
            }
        }, {
            name: 'Hearst, <NAME>',<commit_msg>Add test for multiple middle names.<commit_after>//TODO: parseName
//<NAME>, CAI, CES, CAGA
//John (Johnnie) Doe
//John "Johnnie" Doe

//TODO: getUsableName(str, idx)
//<NAME> & <NAME>
//<NAME>, Senior Whatever


var chai = require('chai')
    , expect = chai.expect
    , human = require('..');


// `describe` makes a "suite" of tests; think of them as a group.
describe('Parsing names', function() {

    var names = [
        {
            name: 'Mr. <NAME>',
            result: {
                salutation: 'Mr.',
                firstName: 'William',
                middleName: 'R.',
                lastName: 'Hearst',
                suffix: 'III',
                fullName: 'Mr. <NAME>, III'
            }
        },{
            name: '<NAME>',
            result: {
                firstName: 'William',
                lastName: 'Hearst',
                middleName: 'Randolph',
                fullName: '<NAME>'
            }
        }, {
            name: '<NAME>',
            result: {
                firstName: 'William',
                lastName: '<NAME>',
                middleName: 'R.',
                fullName: '<NAME>'
            }
        }, {
            name: 'Mr. <NAME> Cruz III',
            result: {
                salutation: 'Mr.',
                firstName: 'William',
                suffix: 'III',
                lastName: 'De La Cruz',
                middleName: 'R.',
                fullName: 'Mr. <NAME>'
            }
        }, {
            name: '<NAME>',
            result: {
                firstName: 'William',
                lastName: '<NAME>',
                fullName: '<NAME>'
            }
        }, {
            name: '<NAME>',
            result: {
                firstName: 'William',
                lastName: '<NAME>',
                fullName: '<NAME>'
            }
        }, {
			name: '<NAME>',
			result: {
				firstName: 'James',
				middleName: '<NAME>',
				lastName: 'Laurie',
				fullName: '<NAME>'
			}
		}, {
			name: 'Kiefer <NAME>',
			result: {
				firstName: 'Kiefer',
				middleName: '<NAME>',
				lastName: 'Sutherland',
				fullName: '<NAME>'
			}
		}, {
            name: '<NAME>',
            result: {
                firstName: 'William',
                lastName: 'Hearst',
                fullName: '<NAME>'
            }
        }, {
            name: '<NAME>',
            result: {
                firstName: 'William',
                suffix: 'Jr',
                lastName: 'Hearst',
                fullName: '<NAME> Jr'
            }
        }, {
            name: 'Hearst, <NAME>',
            result: {
                firstName: 'William',
                suffix: 'Jr',
                lastName: 'Hearst',
                fullName: '<NAME>r'
            }
        }, {
            name: 'Hearst, <NAME>',
{'fraction_non_alphanumeric': 0.14867924528301887, 'fraction_numerical': 0.0, 'mean_word_length': 1.0333716915995397, 'pattern_counts': {'":': 0, '<': 61, '<?xml version=': 0, '>': 61, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6560392', 'n_tokens_mistral': 1585, 'n_tokens_neox': 1457, 'n_words': 342}