@jonny/uzh-studies-parser

2.0.0 • Public • Published

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

Package Sidebar

Install

npm i @jonny/uzh-studies-parser

Weekly Downloads

2

Version

2.0.0

License

none

Last publish

Collaborators

  • jonny