singular

Converts a value to it’s singular version. If value is not a string then it will return as it is.

const sanitizationRules = {
  modelName: 'singular'
}

// or
const sanitizationRules = {
  modelName: [
    rule('singular')
  ]
}

For customized build, you can import this rule as follows.

import { singular } from 'indicative/builds/validations'