Socket
Book a DemoInstallSign in
Socket

vbb-tokenize-station

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vbb-tokenize-station

Make VBB station names search-safe.

latest
Source
npmnpm
Version
0.3.0
Version published
Maintainers
1
Created
Source

vbb-tokenize-station

Station names in VBB are terribly inconsistent and user's search queries are not perfect either. This module tries to compensate all the weird edge cases:

  • S Südkreuz Bhf (Berlin) -> sbahn suedkreuz bahnhof berlin
  • S Beusselstr -> sbahn beussel strasse
  • S+U Warschauer Str. -> sbahn ubahn warschauer strasse
  • Charité - Campus Benjamin Franklin (Berlin) -> charite campus benjamin franklin berlin

npm version build status dependency status dev dependency status ISC-licensed gitter channel

Installing

npm install vbb-tokenize-station

Usage

const tokenize = require('vbb-tokenize-station')
tokenize('S+U Warschauer Str.')
.join(' ') // -> 'sbahn ubahn warschauer strasse'

Called with no arguments or an invalid argument, tokenize will return [].

Contributing

If you have a question, found a bug or want to propose a feature, have a look at the issues page.

Keywords

vbb

FAQs

Package last updated on 27 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts