@jonny/uzh-studies-parser
v2.0.0
Published
Parses UZH studies. "BSc UZH in Informatik (RO08)" => "bachelor"
Downloads
5
Readme
uzh-studies-parser
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