{"size": 2213, "ext": "js", "max_stars_repo_path": "src/korean/conjugations/determiner.js", "max_stars_repo_name": "Ninjaman494/KoreanConjugator", "max_stars_repo_stars_event_min_datetime": "2020-08-08T17:59:26.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-15T22:52:57.000Z", "max_issues_repo_path": "src/korean/conjugations/determiner.js", "max_issues_repo_name": "Ninjaman494/KoreanConjugator", "max_issues_repo_issues_event_min_datetime": "2019-01-08T16:10:50.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-14T13:42:13.000Z", "max_forks_repo_path": "src/korean/conjugations/determiner.js", "max_forks_repo_name": "Ninjaman494/Hanji-Server", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 6, "max_issues_count": 22, "max_forks_count": null, "avg_line_length": 38.1551724138, "max_line_length": 102, "alphanum_fraction": 0.7112516945}
const conjugator = require('../conjugator');
let conjugations = {};

conjugations.determiner_present = function(infinitive, regular, isAdj) {
    let stem = conjugator.base(infinitive, regular);
    if(!isAdj || conjugator.is_itda_obda(infinitive,regular)){ // special conjugations for these forms
        if(conjugator.is_l_irregular(stem,regular)){
            return conjugator.drop_l(stem,'는');
        }else {
            return conjugator.join(stem, '는');
        }
    }else {
        if(conjugator.is_l_irregular(stem,regular)){
            return conjugator.drop_l_and_borrow_padchim(stem,'은');
        }else {
            return conjugator.merge(conjugator.base3(infinitive,regular), '은');
        }

    }
};
conjugations.determiner_present.conjugation = true;
conjugations.determiner_present.type = 'determiner';
conjugations.determiner_present.tense = 'present';
conjugations.determiner_present.speechLevel = 'none';

conjugations.determiner_past = function(infinitive, regular, isAdj) {
    if(!isAdj && !conjugator.is_itda_obda(infinitive,regular)) {
        let stem = conjugator.base(infinitive, regular);
        if (conjugator.is_l_irregular(stem, regular)) {
            return conjugator.drop_l_and_borrow_padchim(stem, '은');
        } else{
            return conjugator.merge(conjugator.base3(infinitive, regular), '은');
        }
    }
};
conjugations.determiner_past.conjugation = true;
conjugations.determiner_past.type = 'determiner';
conjugations.determiner_past.tense = 'past';
conjugations.determiner_past.speechLevel = 'none';

conjugations.determiner_future = function(infinitive, regular) {
    let stem = conjugator.base(infinitive,regular);
    if (conjugator.is_l_irregular(stem, regular)) {
        return conjugator.drop_l_and_borrow_padchim(stem, '을');
    } else{
        return conjugator.merge(conjugator.base3(infinitive, regular), '을');
    }
};
conjugations.determiner_future.conjugation = true;
conjugations.determiner_future.type = 'determiner';
conjugations.determiner_future.tense = 'future';
conjugations.determiner_future.speechLevel = 'none';


// export conjugations
for(let conjugation in conjugations){
    exports[conjugation] = conjugations[conjugation];
}