npmi to function
minor whsp, contrib