2.0.0 • Published 8 years ago

@jonny/uzh-studies-parser v2.0.0

Weekly downloads
-
License
-
Repository
github
Last release
8 years ago

uzh-studies-parser Build Status

Find the type of degree from a UZH (University of Zurich) degree name.

Install

npm install --save @jonny/uzh-studies-parser

Usage

const StudyParser = require('@jonny/uzh-studies-parser');

StudyParser.getType('BA UZH in Religionswissenschaft');
//=> 'bachelor'
StudyParser.getType('MLaw UZH (RVO13)');
//=> 'master'
StudyParser.getHumanReadable('MLaw UZH (RVO13)');
//=> 'Master'
StudyParser.getHumanReadable('MLaw UZH (RVO13)');
//=> 'of Law (RVO2013)'

API

getType(input)

input

Type: string

output

One of these: "bachelor", "master", "doctorate", "licenciate", "joint-degree", "notary-exam-preparation", null

getHumanReadable(input)

input

type: string

output

Same as getType, but in a human readable format.

getDirection(input)

input

type: string

output

Description of degree. Does not include type of degree. Should be displayed alongside the result getType().

Reference

This module was created by looking at this list of UZH degrees that I found on Google.

License

MIT © Jonny Burger