• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

theiconic / name-parser / 85
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: tmp02
DEFAULT BRANCH: master
Ran 16 Sep 2018 02:24AM UTC
Jobs 2
Files 23
Run time 9s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
85

push

travis-ci

wyrfel
Enable lastname remapping - fixes #11

Names like "SUJAN MASTER", "JAMES J MA", "PETER K MA" had the 'Master'
or 'Ma' parts as special parts (salutations, suffixes) where they
should be lastnames. In "PAUL M LEWIS MR", the lastname should be
'Lewis Mr'.

This change does three things to fix this:
Firstly, it prevents parsing for salutations beyond the first half of words in
the given string. It also introduces a `setMaxSalutationIndex()` method
to allow overriding this with a fixed maximum word index. E.g. setting
it to 2 will require salutations to appear in the first two words.

Secondly, if the lastname mapper does not derive a lastname, but has skipped
ignored parts like suffix, nickname or salutation, it will convert these into
lastname parts.

Thirdly, the lastname mapper will now map more than one lastname part if
the already mapped lastname parts are shorter than 3 characters and there
will be at least one part left after mapping. This effectively maps
'Lewis' in 'Paul M Lewis Mr' as lastname instead of previously as middlename.

320 of 320 relevant lines covered (100.0%)

87.71 hits per line

Jobs
ID Job ID Ran Files Coverage
1 85.1 16 Sep 2018 02:24AM UTC 0
100.0
Travis Job 85.1
2 85.2 16 Sep 2018 02:24AM UTC 0
100.0
Travis Job 85.2
Source Files on build 85
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #85
  • 900a5cf7 on github
  • Next Build on feature/lastname-remapping (#86)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc