text: const PersonClassifier = require('./PersonClassifier')
  const PersonClassification = require('../classification/PersonClassification')
  const Span = require('../tokenization/Span')
  const classifier = new PersonClassifier()
  
  module.exports.tests = {}
  
  function classify (body) {
    let s = new Span(body)
    classifier.each(s, null, 1)
    return s
  }
  
  module.exports.tests.contains_numerals = (test) => {
    test('contains numerals: honours contains.numerals boolean', (t) => {
      let s = new Span('example')
      s.contains.numerals = true
      classifier.each(s, null, 1)
      t.deepEqual(s.classifications, {})
      t.end()
    })
  }
  
  module.exports.tests.classify = (test) => {
    let valid = [
      'Martin Luther King', 'm l k', 'MLK',
      'John Fitzgerald Kennedy', 'j f k', 'JFK',
      'cdg', 'Charles De Gaulle'
    ]
  
    valid.forEach(token => {
      test(`classify: ${token}`, (t) => {
        let s = classify(token)
        t.deepEqual(s.classifications, {
          PersonClassification: new PersonClassification(1.0)
        })
        t.end()
      })
    })
  }
  
  module.exports.all = (tape, common) => {
    function test (name, testFunction) {
      return tape(`PersonClassifier: ${name}`, testFunction)
    }
  
    for (var testCase in module.exports.tests) {
      module.exports.tests[testCase](test, common)
    }
  }
  