DuyTa's picture
Upload folder using huggingface_hub
bc20498 verified
raw
history blame
246 Bytes
var capitalize = require('./capitalize');
var underscored = require('./underscored');
var trim = require('./trim');
module.exports = function humanize(str) {
return capitalize(trim(underscored(str).replace(/_id$/, '').replace(/_/g, ' ')));
};