Significance
The increasing dominance of multiauthor papers is straining the credit system of science: although for single-author papers, the credit is obvious and undivided, for multiauthor papers, credit assignment varies from discipline to discipline. Consequently, each research field runs its own informal credit allocation system, which is hard to decode for outsiders. Here we develop a discipline-independent algorithm to decipher the collective credit allocation process within science, capturing each coauthor’s perceived contribution to a publication. The proposed method provides scientists and policy-makers an effective tool to quantify and compare the scientific contribution of each researcher without requiring familiarity with the credit allocation system of the specific discipline.