diff --git a/classifier/scheme/street.js b/classifier/scheme/street.js index cf629c2b..6e135e7f 100644 --- a/classifier/scheme/street.js +++ b/classifier/scheme/street.js @@ -317,5 +317,20 @@ module.exports = [ not: ['StreetClassification', 'IntersectionClassification', 'EndTokenSingleCharacterClassification'] } ] + }, + { + // West Main Street + confidence: 0.88, + Class: StreetClassification, + scheme: [ + { + is: ['DirectionalClassification'], + not: ['StreetClassification', 'IntersectionClassification', 'EndTokenSingleCharacterClassification'] + }, + { + is: ['StreetClassification'], + not: ['DirectionalClassification'] + } + ] } ] diff --git a/test/address.usa.test.js b/test/address.usa.test.js index 66f8680d..e6496cf7 100644 --- a/test/address.usa.test.js +++ b/test/address.usa.test.js @@ -155,6 +155,18 @@ const testcase = (test, common) => { { locality: 'Brooklyn' }, { region: 'NY' } ]) + + assert('E Cesar Chavez St', [ + { street: 'E Cesar Chavez St' } + ]) + + assert('Riverbend Club Dr Se', [ + { street: 'Riverbend Club Dr Se' } + ]) + + assert('E William Cannon Dr', [ + { street: 'E William Cannon Dr' } + ]) } module.exports.all = (tape, common) => {