All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.datadog.gradle.plugin.licenses.internal.SPDXLicenseConverter.kt Maven / Gradle / Ivy

The newest version!
/*
 * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
 * This product includes software developed at Datadog (https://www.datadoghq.com/).
 * Copyright 2016-Present Datadog, Inc.
 */

package com.datadog.gradle.plugin.licenses.internal

import me.xdrop.fuzzywuzzy.FuzzySearch

@Suppress("LargeClass")
internal object SPDXLicenseConverter {

    fun convert(licenses: String?): List? {
        val result = licenses?.split('/')
            ?.map {
                convertLicense(
                    it,
                )
            }

        return if (result.isNullOrEmpty() || result.contains(null)) {
            null
        } else {
            result.filterNotNull()
        }
    }

    @Suppress("ReturnCount")
    private fun convertLicense(license: String): SPDXLicense? {
        if (license.isBlank()) return null

        val nameMatch = FuzzySearch.extractOne(
            license.trim(),
            nameList,
        )
        if (nameMatch.score > MATCH_THRESHOLD) {
            return nameMap[nameMatch.string]
        }

        val identifierMatch = FuzzySearch.extractOne(
            license.trim(),
            identifierList,
        )
        if (identifierMatch.score > MATCH_THRESHOLD) {
            return identifierMap[identifierMatch.string]
        }

        return null
    }

    private val identifierMap = SPDXLicense.values()
        .map { it.csvName to it }
        .toMap()

    @Suppress("MaxLineLength")
    private val nameMap = mapOf(
        "BSD Zero Clause License" to SPDXLicense._0BSD,

        "Attribution Assurance License" to SPDXLicense.AAL,
        "Abstyles License" to SPDXLicense.ABSTYLES,
        "AdaCore Doc License" to SPDXLicense.ADACORE_DOC,
        "Adobe Systems Incorporated Source Code License Agreement" to SPDXLicense.ADOBE_2006,
        "Adobe Glyph List License" to SPDXLicense.ADOBE_GLYPH,
        "Adobe Utopia Font License" to SPDXLicense.ADOBE_UTOPIA,
        "Amazon Digital Services License" to SPDXLicense.ADSL,
        "Academic Free License v1.1" to SPDXLicense.AFL_1_1,
        "Academic Free License v1.2" to SPDXLicense.AFL_1_2,
        "Academic Free License v2.0" to SPDXLicense.AFL_2_0,
        "Academic Free License v2.1" to SPDXLicense.AFL_2_1,
        "Academic Free License v3.0" to SPDXLicense.AFL_3_0,
        "Afmparse License" to SPDXLicense.AFMPARSE,
        "Affero General Public License v1.0 only" to SPDXLicense.AGPL_1_0_ONLY,
        "Affero General Public License v1.0 or later" to SPDXLicense.AGPL_1_0_OR_LATER,
        "GNU Affero General Public License v3.0 only" to SPDXLicense.AGPL_3_0_ONLY,
        "GNU Affero General Public License v3.0 or later" to SPDXLicense.AGPL_3_0_OR_LATER,
        "Aladdin Free Public License" to SPDXLicense.ALADDIN,
        "AMD's plpa_map.c License" to SPDXLicense.AMDPLPA,
        "Apple MIT License" to SPDXLicense.AML,
        "Academy of Motion Picture Arts and Sciences BSD" to SPDXLicense.AMPAS,
        "ANTLR Software Rights Notice" to SPDXLicense.ANTLR_PD,
        "ANTLR Software Rights Notice with license fallback" to SPDXLicense.ANTLR_PD_FALLBACK,
        "Apache License 1.0" to SPDXLicense.APACHE_1_0,
        "Apache License 1.1" to SPDXLicense.APACHE_1_1,
        "Apache License 2.0" to SPDXLicense.APACHE_2_0,
        "The Apache License, Version 2.0" to SPDXLicense.APACHE_2_0,
        "The Apache License, Version 2.0" to SPDXLicense.APACHE_2_0,
        "Adobe Postscript AFM License" to SPDXLicense.APAFML,
        "Adaptive Public License 1.0" to SPDXLicense.APL_1_0,
        "App::s2p License" to SPDXLicense.APP_S2P,
        "Apple Public Source License 1.0" to SPDXLicense.APSL_1_0,
        "Apple Public Source License 1.1" to SPDXLicense.APSL_1_1,
        "Apple Public Source License 1.2" to SPDXLicense.APSL_1_2,
        "Apple Public Source License 2.0" to SPDXLicense.APSL_2_0,
        "Arphic Public License" to SPDXLicense.ARPHIC_1999,
        "Artistic License 1.0" to SPDXLicense.ARTISTIC_1_0,
        "Artistic License 1.0 w/clause 8" to SPDXLicense.ARTISTIC_1_0_CL8,
        "Artistic License 1.0 (Perl)" to SPDXLicense.ARTISTIC_1_0_PERL,
        "Artistic License 2.0" to SPDXLicense.ARTISTIC_2_0,
        "ASWF Digital Assets License version 1.0" to SPDXLicense.ASWF_DIGITAL_ASSETS_1_0,
        "ASWF Digital Assets License 1.1" to SPDXLicense.ASWF_DIGITAL_ASSETS_1_1,

        "Baekmuk License" to SPDXLicense.BAEKMUK,
        "Bahyph License" to SPDXLicense.BAHYPH,
        "Barr License" to SPDXLicense.BARR,
        "Beerware License" to SPDXLicense.BEERWARE,
        "Bitstream Charter Font License" to SPDXLicense.BITSTREAM_CHARTER,
        "Bitstream Vera Font License" to SPDXLicense.BITSTREAM_VERA,
        "BitTorrent Open Source License v1.0" to SPDXLicense.BITTORRENT_1_0,
        "BitTorrent Open Source License v1.1" to SPDXLicense.BITTORRENT_1_1,
        "SQLite Blessing" to SPDXLicense.BLESSING,
        "Blue Oak Model License 1.0.0" to SPDXLicense.BLUEOAK_1_0_0,
        "Boehm-Demers-Weiser GC License" to SPDXLicense.BOEHM_GC,
        "Borceux license" to SPDXLicense.BORCEUX,
        "Bouncy Castle Licence" to SPDXLicense.BOUNCY_CASTLE,
        "Brian Gladman 3-Clause License" to SPDXLicense.BRIAN_GLADMAN_3_CLAUSE,
        "BSD 1-Clause License" to SPDXLicense.BSD_1_CLAUSE,
        "BSD 2-Clause \"Simplified\" License" to SPDXLicense.BSD_2_CLAUSE,
        "BSD 2-Clause FreeBSD License" to SPDXLicense.BSD_2_CLAUSE_FREEBSD,
        "BSD 2-Clause NetBSD License" to SPDXLicense.BSD_2_CLAUSE_NETBSD,
        "BSD-2-Clause Plus Patent License" to SPDXLicense.BSD_2_CLAUSE_PATENT,
        "BSD 2-Clause with views sentence" to SPDXLicense.BSD_2_CLAUSE_VIEWS,
        "BSD 3-Clause \"New\" or \"Revised\" License" to SPDXLicense.BSD_3_CLAUSE,
        "BSD with attribution" to SPDXLicense.BSD_3_CLAUSE_ATTRIBUTION,
        "BSD 3-Clause Clear License" to SPDXLicense.BSD_3_CLAUSE_CLEAR,
        "BSD 3-Clause Flex variant" to SPDXLicense.BSD_3_CLAUSE_FLEX,
        "Hewlett-Packard BSD variant license" to SPDXLicense.BSD_3_CLAUSE_HP,
        "Lawrence Berkeley National Labs BSD variant license" to SPDXLicense.BSD_3_CLAUSE_LBNL,
        "BSD 3-Clause Modification" to SPDXLicense.BSD_3_CLAUSE_MODIFICATION,
        "BSD 3-Clause No Military License" to SPDXLicense.BSD_3_CLAUSE_NO_MILITARY_LICENSE,
        "BSD 3-Clause No Nuclear License" to SPDXLicense.BSD_3_CLAUSE_NO_NUCLEAR_LICENSE,
        "BSD 3-Clause No Nuclear License 2014" to SPDXLicense.BSD_3_CLAUSE_NO_NUCLEAR_LICENSE_2014,
        "BSD 3-Clause No Nuclear Warranty" to SPDXLicense.BSD_3_CLAUSE_NO_NUCLEAR_WARRANTY,
        "BSD 3-Clause Open MPI variant" to SPDXLicense.BSD_3_CLAUSE_OPEN_MPI,
        "BSD 3-Clause Sun Microsystems" to SPDXLicense.BSD_3_CLAUSE_SUN,
        "BSD 4.3 RENO License" to SPDXLicense.BSD_4_3RENO,
        "BSD 4.3 TAHOE License" to SPDXLicense.BSD_4_3TAHOE,
        "BSD 4-Clause \"Original\" or \"Old\" License" to SPDXLicense.BSD_4_CLAUSE,
        "BSD 4 Clause Shortened" to SPDXLicense.BSD_4_CLAUSE_SHORTENED,
        "BSD-4-Clause (University of California-Specific)" to SPDXLicense.BSD_4_CLAUSE_UC,
        "BSD Advertising Acknowledgement License" to SPDXLicense.BSD_ADVERTISING_ACKNOWLEDGEMENT,
        "BSD with Attribution and HPND disclaimer" to SPDXLicense.BSD_ATTRIBUTION_HPND_DISCLAIMER,
        "BSD-Inferno-Nettverk" to SPDXLicense.BSD_INFERNO_NETTVERK,
        "BSD Protection License" to SPDXLicense.BSD_PROTECTION,
        "BSD Source Code Attribution" to SPDXLicense.BSD_SOURCE_CODE,
        "Systemics BSD variant license" to SPDXLicense.BSD_SYSTEMICS,
        "Boost Software License 1.0" to SPDXLicense.BSL_1_0,
        "Business Source License 1.1" to SPDXLicense.BUSL_1_1,
        "bzip2 and libbzip2 License v1.0.5" to SPDXLicense.BZIP2_1_0_5,
        "bzip2 and libbzip2 License v1.0.6" to SPDXLicense.BZIP2_1_0_6,

        "Caldera License" to SPDXLicense.CALDERA,
        "Cryptographic Autonomy License 1.0" to SPDXLicense.CAL_1_0,
        "Cryptographic Autonomy License 1.0 (Combined Work Exception)" to SPDXLicense.CAL_1_0_COMBINED_WORK_EXCEPTION,
        "Computer Associates Trusted Open Source License 1.1" to SPDXLicense.CATOSL_1_1,
        "Creative Commons Attribution 1.0 Generic" to SPDXLicense.CC_BY_1_0,
        "Creative Commons Attribution 2.0 Generic" to SPDXLicense.CC_BY_2_0,
        "Creative Commons Attribution 2.5 Generic" to SPDXLicense.CC_BY_2_5,
        "Creative Commons Attribution 2.5 Australia" to SPDXLicense.CC_BY_2_5_AU,
        "Creative Commons Attribution 3.0 Unported" to SPDXLicense.CC_BY_3_0,
        "Creative Commons Attribution 3.0 Austria" to SPDXLicense.CC_BY_3_0_AT,
        "Creative Commons Attribution 3.0 Germany" to SPDXLicense.CC_BY_3_0_DE,
        "Creative Commons Attribution 3.0 IGO" to SPDXLicense.CC_BY_3_0_IGO,
        "Creative Commons Attribution 3.0 Netherlands" to SPDXLicense.CC_BY_3_0_NL,
        "Creative Commons Attribution 3.0 United States" to SPDXLicense.CC_BY_3_0_US,
        "Creative Commons Attribution 4.0 International" to SPDXLicense.CC_BY_4_0,
        "Creative Commons Attribution Non Commercial 1.0 Generic" to SPDXLicense.CC_BY_NC_1_0,
        "Creative Commons Attribution Non Commercial 2.0 Generic" to SPDXLicense.CC_BY_NC_2_0,
        "Creative Commons Attribution Non Commercial 2.5 Generic" to SPDXLicense.CC_BY_NC_2_5,
        "Creative Commons Attribution Non Commercial 3.0 Unported" to SPDXLicense.CC_BY_NC_3_0,
        "Creative Commons Attribution Non Commercial 3.0 Germany" to SPDXLicense.CC_BY_NC_3_0_DE,
        "Creative Commons Attribution Non Commercial 4.0 International" to SPDXLicense.CC_BY_NC_4_0,
        "Creative Commons Attribution Non Commercial No Derivatives 1.0 Generic" to SPDXLicense.CC_BY_NC_ND_1_0,
        "Creative Commons Attribution Non Commercial No Derivatives 2.0 Generic" to SPDXLicense.CC_BY_NC_ND_2_0,
        "Creative Commons Attribution Non Commercial No Derivatives 2.5 Generic" to SPDXLicense.CC_BY_NC_ND_2_5,
        "Creative Commons Attribution Non Commercial No Derivatives 3.0 Unported" to SPDXLicense.CC_BY_NC_ND_3_0,
        "Creative Commons Attribution Non Commercial No Derivatives 3.0 Germany" to SPDXLicense.CC_BY_NC_ND_3_0_DE,
        "Creative Commons Attribution Non Commercial No Derivatives 3.0 IGO" to SPDXLicense.CC_BY_NC_ND_3_0_IGO,
        "Creative Commons Attribution Non Commercial No Derivatives 4.0 International" to SPDXLicense.CC_BY_NC_ND_4_0,
        "Creative Commons Attribution Non Commercial Share Alike 1.0 Generic" to SPDXLicense.CC_BY_NC_SA_1_0,
        "Creative Commons Attribution Non Commercial Share Alike 2.0 Generic" to SPDXLicense.CC_BY_NC_SA_2_0,
        "Creative Commons Attribution Non Commercial Share Alike 2.0 Germany" to SPDXLicense.CC_BY_NC_SA_2_0_DE,
        "Creative Commons Attribution-NonCommercial-ShareAlike 2.0 France" to SPDXLicense.CC_BY_NC_SA_2_0_FR,
        "Creative Commons Attribution Non Commercial Share Alike 2.0 England and Wales" to SPDXLicense.CC_BY_NC_SA_2_0_UK,
        "Creative Commons Attribution Non Commercial Share Alike 2.5 Generic" to SPDXLicense.CC_BY_NC_SA_2_5,
        "Creative Commons Attribution Non Commercial Share Alike 3.0 Unported" to SPDXLicense.CC_BY_NC_SA_3_0,
        "Creative Commons Attribution Non Commercial Share Alike 3.0 Germany" to SPDXLicense.CC_BY_NC_SA_3_0_DE,
        "Creative Commons Attribution Non Commercial Share Alike 3.0 IGO" to SPDXLicense.CC_BY_NC_SA_3_0_IGO,
        "Creative Commons Attribution Non Commercial Share Alike 4.0 International" to SPDXLicense.CC_BY_NC_SA_4_0,
        "Creative Commons Attribution No Derivatives 1.0 Generic" to SPDXLicense.CC_BY_ND_1_0,
        "Creative Commons Attribution No Derivatives 2.0 Generic" to SPDXLicense.CC_BY_ND_2_0,
        "Creative Commons Attribution No Derivatives 2.5 Generic" to SPDXLicense.CC_BY_ND_2_5,
        "Creative Commons Attribution No Derivatives 3.0 Unported" to SPDXLicense.CC_BY_ND_3_0,
        "Creative Commons Attribution No Derivatives 3.0 Germany" to SPDXLicense.CC_BY_ND_3_0_DE,
        "Creative Commons Attribution No Derivatives 4.0 International" to SPDXLicense.CC_BY_ND_4_0,
        "Creative Commons Attribution Share Alike 1.0 Generic" to SPDXLicense.CC_BY_SA_1_0,
        "Creative Commons Attribution Share Alike 2.0 Generic" to SPDXLicense.CC_BY_SA_2_0,
        "Creative Commons Attribution Share Alike 2.0 England and Wales" to SPDXLicense.CC_BY_SA_2_0_UK,
        "Creative Commons Attribution Share Alike 2.1 Japan" to SPDXLicense.CC_BY_SA_2_1_JP,
        "Creative Commons Attribution Share Alike 2.5 Generic" to SPDXLicense.CC_BY_SA_2_5,
        "Creative Commons Attribution Share Alike 3.0 Unported" to SPDXLicense.CC_BY_SA_3_0,
        "Creative Commons Attribution Share Alike 3.0 Austria" to SPDXLicense.CC_BY_SA_3_0_AT,
        "Creative Commons Attribution Share Alike 3.0 Germany" to SPDXLicense.CC_BY_SA_3_0_DE,
        "Creative Commons Attribution-ShareAlike 3.0 IGO" to SPDXLicense.CC_BY_SA_3_0_IGO,
        "Creative Commons Attribution Share Alike 4.0 International" to SPDXLicense.CC_BY_SA_4_0,
        "Creative Commons Public Domain Dedication and Certification" to SPDXLicense.CC_PDDC,
        "Creative Commons Zero v1.0 Universal" to SPDXLicense.CC0_1_0,
        "Common Development and Distribution License 1.0" to SPDXLicense.CDDL_1_0,
        "Common Development and Distribution License 1.1" to SPDXLicense.CDDL_1_1,
        "Community Data License Agreement Permissive 1.0" to SPDXLicense.CDLA_PERMISSIVE_1_0,
        "Community Data License Agreement Permissive 2.0" to SPDXLicense.CDLA_PERMISSIVE_2_0,
        "Community Data License Agreement Sharing 1.0" to SPDXLicense.CDLA_SHARING_1_0,
        "Common Documentation License 1.0" to SPDXLicense.CDL_1_0,
        "CeCILL Free Software License Agreement v1.0" to SPDXLicense.CECILL_1_0,
        "CeCILL Free Software License Agreement v1.1" to SPDXLicense.CECILL_1_1,
        "CeCILL Free Software License Agreement v2.0" to SPDXLicense.CECILL_2_0,
        "CeCILL Free Software License Agreement v2.1" to SPDXLicense.CECILL_2_1,
        "CeCILL-B Free Software License Agreement" to SPDXLicense.CECILL_B,
        "CeCILL-C Free Software License Agreement" to SPDXLicense.CECILL_C,
        "CERN Open Hardware Licence v1.1" to SPDXLicense.CERN_OHL_1_1,
        "CERN Open Hardware Licence v1.2" to SPDXLicense.CERN_OHL_1_2,
        "CERN Open Hardware Licence Version 2 - Permissive" to SPDXLicense.CERN_OHL_P_2_0,
        "CERN Open Hardware Licence Version 2 - Strongly Reciprocal" to SPDXLicense.CERN_OHL_S_2_0,
        "CERN Open Hardware Licence Version 2 - Weakly Reciprocal" to SPDXLicense.CERN_OHL_W_2_0,
        "CFITSIO License" to SPDXLicense.CFITSIO,
        "Checkmk License" to SPDXLicense.CHECKMK,
        "check-cvs License" to SPDXLicense.CHECK_CVS,
        "Clarified Artistic License" to SPDXLicense.CLARTISTIC,
        "Clips License" to SPDXLicense.CLIPS,
        "CMU Mach License" to SPDXLicense.CMU_MACH,
        "CNRI Jython License" to SPDXLicense.CNRI_JYTHON,
        "CNRI Python License" to SPDXLicense.CNRI_PYTHON,
        "CNRI Python Open Source GPL Compatible License Agreement" to SPDXLicense.CNRI_PYTHON_GPL_COMPATIBLE,
        "Copyfree Open Innovation License" to SPDXLicense.COIL_1_0,
        "Community Specification License 1.0" to SPDXLicense.COMMUNITY_SPEC_1_0,
        "Condor Public License v1.1" to SPDXLicense.CONDOR_1_1,
        "copyleft-next 0.3.0" to SPDXLicense.COPYLEFT_NEXT_0_3_0,
        "copyleft-next 0.3.1" to SPDXLicense.COPYLEFT_NEXT_0_3_1,
        "Cornell Lossless JPEG License" to SPDXLicense.CORNELL_LOSSLESS_JPEG,
        "Common Public Attribution License 1.0" to SPDXLicense.CPAL_1_0,
        "Common Public License 1.0" to SPDXLicense.CPL_1_0,
        "Code Project Open License 1.02" to SPDXLicense.CPOL_1_02,
        "Cronyx License" to SPDXLicense.CRONYX,
        "Crossword License" to SPDXLicense.CROSSWORD,
        "CrystalStacker License" to SPDXLicense.CRYSTALSTACKER,
        "CUA Office Public License v1.0" to SPDXLicense.CUA_OPL_1_0,
        "Cube License" to SPDXLicense.CUBE,
        "curl License" to SPDXLicense.CURL,
        "Computational Use of Data Agreement v1.0" to SPDXLicense.C_UDA_1_0,

        "Deutsche Freie Software Lizenz" to SPDXLicense.D_FSL_1_0,
        "diffmark license" to SPDXLicense.DIFFMARK,
        "Data licence Germany – attribution – version 2.0" to SPDXLicense.DL_DE_BY_2_0,
        "Data licence Germany – zero – version 2.0" to SPDXLicense.DL_DE_ZERO_2_0,
        "DOC License" to SPDXLicense.DOC,
        "Dotseqn License" to SPDXLicense.DOTSEQN,
        "Detection Rule License 1.0" to SPDXLicense.DRL_1_0,
        "DSDP License" to SPDXLicense.DSDP,
        "David M. Gay dtoa License" to SPDXLicense.DTOA,
        "dvipdfm License" to SPDXLicense.DVIPDFM,

        "Educational Community License v1.0" to SPDXLicense.ECL_1_0,
        "Educational Community License v2.0" to SPDXLicense.ECL_2_0,
        "Eiffel Forum License v1.0" to SPDXLicense.EFL_1_0,
        "Eiffel Forum License v2.0" to SPDXLicense.EFL_2_0,
        "eGenix.com Public License 1.1.0" to SPDXLicense.EGENIX,
        "Elastic License 2.0" to SPDXLicense.ELASTIC_2_0,
        "Entessa Public License v1.0" to SPDXLicense.ENTESSA,
        "EPICS Open License" to SPDXLicense.EPICS,
        "Eclipse Public License 1.0" to SPDXLicense.EPL_1_0,
        "Eclipse Public License 2.0" to SPDXLicense.EPL_2_0,
        "Erlang Public License v1.1" to SPDXLicense.ERLPL_1_1,
        "Etalab Open License 2.0" to SPDXLicense.ETALAB_2_0,
        "EU DataGrid Software License" to SPDXLicense.EUDATAGRID,
        "European Union Public License 1.0" to SPDXLicense.EUPL_1_0,
        "European Union Public License 1.1" to SPDXLicense.EUPL_1_1,
        "European Union Public License 1.2" to SPDXLicense.EUPL_1_2,
        "Eurosym License" to SPDXLicense.EUROSYM,

        "Fair License" to SPDXLicense.FAIR,
        "Fuzzy Bitmap License" to SPDXLicense.FBM,
        "Fraunhofer FDK AAC Codec Library" to SPDXLicense.FDK_AAC,
        "Ferguson Twofish License" to SPDXLicense.FERGUSON_TWOFISH,
        "Frameworx Open License 1.0" to SPDXLicense.FRAMEWORX_1_0,
        "FreeBSD Documentation License" to SPDXLicense.FREEBSD_DOC,
        "FreeImage Public License v1.0" to SPDXLicense.FREEIMAGE,
        "FSF All Permissive License" to SPDXLicense.FSFAP,
        "FSF Unlimited License" to SPDXLicense.FSFUL,
        "FSF Unlimited License (with License Retention)" to SPDXLicense.FSFULLR,
        "FSF Unlimited License (With License Retention and Warranty Disclaimer)" to SPDXLicense.FSFULLRWD,
        "Freetype Project License" to SPDXLicense.FTL,
        "Furuseth License" to SPDXLicense.FURUSETH,
        "fwlw License" to SPDXLicense.FWLW,

        "GD License" to SPDXLicense.GD,
        "GNU Free Documentation License v1.1 only - invariants" to SPDXLicense.GFDL_1_1_INVARIANTS_ONLY,
        "GNU Free Documentation License v1.1 or later - invariants" to SPDXLicense.GFDL_1_1_INVARIANTS_OR_LATER,
        "GNU Free Documentation License v1.1 only - no invariants" to SPDXLicense.GFDL_1_1_NO_INVARIANTS_ONLY,
        "GNU Free Documentation License v1.1 or later - no invariants" to SPDXLicense.GFDL_1_1_NO_INVARIANTS_OR_LATER,
        "GNU Free Documentation License v1.1 only" to SPDXLicense.GFDL_1_1_ONLY,
        "GNU Free Documentation License v1.1 or later" to SPDXLicense.GFDL_1_1_OR_LATER,
        "GNU Free Documentation License v1.2 only - invariants" to SPDXLicense.GFDL_1_2_INVARIANTS_ONLY,
        "GNU Free Documentation License v1.2 or later - invariants" to SPDXLicense.GFDL_1_2_INVARIANTS_OR_LATER,
        "GNU Free Documentation License v1.2 only - no invariants" to SPDXLicense.GFDL_1_2_NO_INVARIANTS_ONLY,
        "GNU Free Documentation License v1.2 or later - no invariants" to SPDXLicense.GFDL_1_2_NO_INVARIANTS_OR_LATER,
        "GNU Free Documentation License v1.2 only" to SPDXLicense.GFDL_1_2_ONLY,
        "GNU Free Documentation License v1.2 or later" to SPDXLicense.GFDL_1_2_OR_LATER,
        "GNU Free Documentation License v1.3 only - invariants" to SPDXLicense.GFDL_1_3_INVARIANTS_ONLY,
        "GNU Free Documentation License v1.3 or later - invariants" to SPDXLicense.GFDL_1_3_INVARIANTS_OR_LATER,
        "GNU Free Documentation License v1.3 only - no invariants" to SPDXLicense.GFDL_1_3_NO_INVARIANTS_ONLY,
        "GNU Free Documentation License v1.3 or later - no invariants" to SPDXLicense.GFDL_1_3_NO_INVARIANTS_OR_LATER,
        "GNU Free Documentation License v1.3 only" to SPDXLicense.GFDL_1_3_ONLY,
        "GNU Free Documentation License v1.3 or later" to SPDXLicense.GFDL_1_3_OR_LATER,
        "Giftware License" to SPDXLicense.GIFTWARE,
        "GL2PS License" to SPDXLicense.GL2PS,
        "3dfx Glide License" to SPDXLicense.GLIDE,
        "Glulxe License" to SPDXLicense.GLULXE,
        "Good Luck With That Public License" to SPDXLicense.GLWTPL,
        "gnuplot License" to SPDXLicense.GNUPLOT,
        "GNU General Public License v1.0 only" to SPDXLicense.GPL_1_0_ONLY,
        "GNU General Public License v1.0 or later" to SPDXLicense.GPL_1_0_OR_LATER,
        "GNU General Public License v2.0 only" to SPDXLicense.GPL_2_0_ONLY,
        "GNU General Public License v2.0 or later" to SPDXLicense.GPL_2_0_OR_LATER,
        "GNU General Public License v3.0 only" to SPDXLicense.GPL_3_0_ONLY,
        "GNU General Public License v3.0 or later" to SPDXLicense.GPL_3_0_OR_LATER,
        "Graphics Gems License" to SPDXLicense.GRAPHICS_GEMS,
        "gSOAP Public License v1.3b" to SPDXLicense.GSOAP_1_3B,

        "Haskell Language Report License" to SPDXLicense.HASKELLREPORT,
        "Hippocratic License 2.1" to SPDXLicense.HIPPOCRATIC_2_1,
        "Historical Permission Notice and Disclaimer" to SPDXLicense.HPND,
        "Historical Permission Notice and Disclaimer - DEC variant" to SPDXLicense.HPND_DEC,
        "Historical Permission Notice and Disclaimer - documentation variant" to SPDXLicense.HPND_DOC,
        "Historical Permission Notice and Disclaimer - documentation sell variant" to SPDXLicense.HPND_DOC_SELL,
        "HPND with US Government export control warning" to SPDXLicense.HPND_EXPORT_US,
        "HPND with US Government export control warning and modification rqmt" to SPDXLicense.HPND_EXPORT_US_MODIFY,
        "Historical Permission Notice and Disclaimer - Markus Kuhn variant" to SPDXLicense.HPND_MARKUS_KUHN,
        "Historical Permission Notice and Disclaimer - Pbmplus variant" to SPDXLicense.HPND_PBMPLUS,
        "Historical Permission Notice and Disclaimer - sell regexpr variant" to SPDXLicense.HPND_SELL_REGEXPR,
        "Historical Permission Notice and Disclaimer - sell variant" to SPDXLicense.HPND_SELL_VARIANT,
        "HPND sell variant with MIT disclaimer" to SPDXLicense.HPND_SELL_VARIANT_MIT_DISCLAIMER,
        "Historical Permission Notice and Disclaimer - University of California variant" to SPDXLicense.HPND_UC,
        "Hewlett-Packard 1986 License" to SPDXLicense.HP_1986,
        "HTML Tidy License" to SPDXLicense.HTMLTIDY,

        "IBM PowerPC Initialization and Boot Software" to SPDXLicense.IBM_PIBS,
        "ICU License" to SPDXLicense.ICU,
        "IEC Code Components End-user licence agreement" to SPDXLicense.IEC_CODE_COMPONENTS_EULA,
        "Independent JPEG Group License" to SPDXLicense.IJG,
        "Independent JPEG Group License - short" to SPDXLicense.IJG_SHORT,
        "ImageMagick License" to SPDXLicense.IMAGEMAGICK,
        "iMatix Standard Function Library Agreement" to SPDXLicense.IMATIX,
        "Imlib2 License" to SPDXLicense.IMLIB2,
        "Info-ZIP License" to SPDXLicense.INFO_ZIP,
        "Inner Net License v2.0" to SPDXLicense.INNER_NET_2_0,
        "Intel Open Source License" to SPDXLicense.INTEL,
        "Intel ACPI Software License Agreement" to SPDXLicense.INTEL_ACPI,
        "Interbase Public License v1.0" to SPDXLicense.INTERBASE_1_0,
        "IPA Font License" to SPDXLicense.IPA,
        "IBM Public License v1.0" to SPDXLicense.IPL_1_0,
        "ISC License" to SPDXLicense.ISC,

        "Jam License" to SPDXLicense.JAM,
        "JasPer License" to SPDXLicense.JASPER_2_0,
        "JPL Image Use Policy" to SPDXLicense.JPL_IMAGE,
        "Japan Network Information Center License" to SPDXLicense.JPNIC,
        "JSON License" to SPDXLicense.JSON,

        "Kastrup License" to SPDXLicense.KASTRUP,
        "Kazlib License" to SPDXLicense.KAZLIB,
        "Knuth CTAN License" to SPDXLicense.KNUTH_CTAN,

        "Licence Art Libre 1.2" to SPDXLicense.LAL_1_2,
        "Licence Art Libre 1.3" to SPDXLicense.LAL_1_3,
        "Latex2e License" to SPDXLicense.LATEX2E,
        "Latex2e with translated notice permission" to SPDXLicense.LATEX2E_TRANSLATED_NOTICE,
        "Leptonica License" to SPDXLicense.LEPTONICA,
        "Lesser General Public License For Linguistic Resources" to SPDXLicense.LGPLLR,
        "GNU Library General Public License v2 only" to SPDXLicense.LGPL_2_0_ONLY,
        "GNU Library General Public License v2 or later" to SPDXLicense.LGPL_2_0_OR_LATER,
        "GNU Lesser General Public License v2.1 only" to SPDXLicense.LGPL_2_1_ONLY,
        "GNU Lesser General Public License v2.1 or later" to SPDXLicense.LGPL_2_1_OR_LATER,
        "GNU Lesser General Public License v3.0 only" to SPDXLicense.LGPL_3_0_ONLY,
        "GNU Lesser General Public License v3.0 or later" to SPDXLicense.LGPL_3_0_OR_LATER,
        "libpng License" to SPDXLicense.LIBPNG,
        "PNG Reference Library version 2" to SPDXLicense.LIBPNG_2_0,
        "libselinux public domain notice" to SPDXLicense.LIBSELINUX_1_0,
        "libtiff License" to SPDXLicense.LIBTIFF,
        "libutil David Nugent License" to SPDXLicense.LIBUTIL_DAVID_NUGENT,
        "Licence Libre du Québec – Permissive version 1.1" to SPDXLicense.LILIQ_P_1_1,
        "Licence Libre du Québec – Réciprocité forte version 1.1" to SPDXLicense.LILIQ_RPLUS_1_1,
        "Licence Libre du Québec – Réciprocité version 1.1" to SPDXLicense.LILIQ_R_1_1,
        "Linux man-pages - 1 paragraph" to SPDXLicense.LINUX_MAN_PAGES_1_PARA,
        "Linux man-pages Copyleft" to SPDXLicense.LINUX_MAN_PAGES_COPYLEFT,
        "Linux man-pages Copyleft - 2 paragraphs" to SPDXLicense.LINUX_MAN_PAGES_COPYLEFT_2_PARA,
        "Linux man-pages Copyleft Variant" to SPDXLicense.LINUX_MAN_PAGES_COPYLEFT_VAR,
        "Linux Kernel Variant of OpenIB.org license" to SPDXLicense.LINUX_OPENIB,
        "Common Lisp LOOP License" to SPDXLicense.LOOP,
        "Lucent Public License Version 1.0" to SPDXLicense.LPL_1_0,
        "Lucent Public License v1.02" to SPDXLicense.LPL_1_02,
        "LaTeX Project Public License v1.0" to SPDXLicense.LPPL_1_0,
        "LaTeX Project Public License v1.1" to SPDXLicense.LPPL_1_1,
        "LaTeX Project Public License v1.2" to SPDXLicense.LPPL_1_2,
        "LaTeX Project Public License v1.3a" to SPDXLicense.LPPL_1_3A,
        "LaTeX Project Public License v1.3c" to SPDXLicense.LPPL_1_3C,
        "lsof License" to SPDXLicense.LSOF,
        "Lucida Bitmap Fonts License" to SPDXLicense.LUCIDA_BITMAP_FONTS,
        "LZMA SDK License (versions 9.11 to 9.20)" to SPDXLicense.LZMA_SDK_9_11_TO_9_20,
        "LZMA SDK License (versions 9.22 and beyond)" to SPDXLicense.LZMA_SDK_9_22,

        "magaz License" to SPDXLicense.MAGAZ,
        "MakeIndex License" to SPDXLicense.MAKEINDEX,
        "Martin Birgmeier License" to SPDXLicense.MARTIN_BIRGMEIER,
        "McPhee Slideshow License" to SPDXLicense.MCPHEE_SLIDESHOW,
        "metamail License" to SPDXLicense.METAMAIL,
        "Minpack License" to SPDXLicense.MINPACK,
        "The MirOS Licence" to SPDXLicense.MIROS,
        "MIT" to SPDXLicense.MIT,
        "MIT License" to SPDXLicense.MIT,
        "MIT" to SPDXLicense.MIT,
        "MIT No Attribution" to SPDXLicense.MIT_0,
        "Enlightenment License (e16)" to SPDXLicense.MIT_ADVERTISING,
        "CMU License" to SPDXLicense.MIT_CMU,
        "enna License" to SPDXLicense.MIT_ENNA,
        "feh License" to SPDXLicense.MIT_FEH,
        "MIT Festival Variant" to SPDXLicense.MIT_FESTIVAL,
        "MIT License Modern Variant" to SPDXLicense.MIT_MODERN_VARIANT,
        "MIT +no-false-attribs license" to SPDXLicense.MITNFA,
        "MIT Open Group variant" to SPDXLicense.MIT_OPEN_GROUP,
        "MIT testregex Variant" to SPDXLicense.MIT_TESTREGEX,
        "MIT Tom Wu Variant" to SPDXLicense.MIT_WU,
        "MMIXware License" to SPDXLicense.MMIXWARE,
        "Motosoto License" to SPDXLicense.MOTOSOTO,
        "MPEG Software Simulation" to SPDXLicense.MPEG_SSG,
        "mpich2 License" to SPDXLicense.MPICH2,
        "mpi Permissive License" to SPDXLicense.MPI_PERMISSIVE,
        "mplus Font License" to SPDXLicense.MPLUS,
        "Mozilla Public License 1.0" to SPDXLicense.MPL_1_0,
        "Mozilla Public License 1.1" to SPDXLicense.MPL_1_1,
        "Mozilla Public License 2.0" to SPDXLicense.MPL_2_0,
        "Mozilla Public License 2.0 (no copyleft exception)" to SPDXLicense.MPL_2_0_NO_COPYLEFT_EXCEPTION,
        "Microsoft Limited Public License" to SPDXLicense.MS_LPL,
        "Microsoft Public License" to SPDXLicense.MS_PL,
        "Microsoft Reciprocal License" to SPDXLicense.MS_RL,
        "Matrix Template Library License" to SPDXLicense.MTLL,
        "Mulan Permissive Software License, Version 1" to SPDXLicense.MULANPSL_1_0,
        "Mulan Permissive Software License, Version 2" to SPDXLicense.MULANPSL_2_0,
        "Multics License" to SPDXLicense.MULTICS,
        "Mup License" to SPDXLicense.MUP,

        "Nara Institute of Science and Technology License (2003)" to SPDXLicense.NAIST_2003,
        "NASA Open Source Agreement 1.3" to SPDXLicense.NASA_1_3,
        "Naumen Public License" to SPDXLicense.NAUMEN,
        "Net Boolean Public License v1" to SPDXLicense.NBPL_1_0,
        "Non-Commercial Government Licence" to SPDXLicense.NCGL_UK_2_0,
        "University of Illinois/NCSA Open Source License" to SPDXLicense.NCSA,
        "NetCDF license" to SPDXLicense.NETCDF,
        "Net-SNMP License" to SPDXLicense.NET_SNMP,
        "Newsletr License" to SPDXLicense.NEWSLETR,
        "Nethack General Public License" to SPDXLicense.NGPL,
        "NICTA Public Software License, Version 1.0" to SPDXLicense.NICTA_1_0,
        "NIST Public Domain Notice" to SPDXLicense.NIST_PD,
        "NIST Public Domain Notice with license fallback" to SPDXLicense.NIST_PD_FALLBACK,
        "NIST Software License" to SPDXLicense.NIST_SOFTWARE,
        "Norwegian Licence for Open Government Data (NLOD) 1.0" to SPDXLicense.NLOD_1_0,
        "Norwegian Licence for Open Government Data" to SPDXLicense.NLOD_1_0,
        "Norwegian Licence for Open Government Data (NLOD) 2.0" to SPDXLicense.NLOD_2_0,
        "No Limit Public License" to SPDXLicense.NLPL,
        "Nokia Open Source License" to SPDXLicense.NOKIA,
        "Netizen Open Source License" to SPDXLicense.NOSL,
        "Noweb License" to SPDXLicense.NOWEB,
        "Netscape Public License v1.0" to SPDXLicense.NPL_1_0,
        "Netscape Public License v1.1" to SPDXLicense.NPL_1_1,
        "Non-Profit Open Software License 3.0" to SPDXLicense.NPOSL_3_0,
        "NRL License" to SPDXLicense.NRL,
        "NTP License" to SPDXLicense.NTP,
        "NTP No Attribution" to SPDXLicense.NTP_0,

        "Open CASCADE Technology Public License" to SPDXLicense.OCCT_PL,
        "OCLC Research Public License 2.0" to SPDXLicense.OCLC_2_0,
        "ODC Open Database License v1.0" to SPDXLicense.ODBL_1_0,
        "Open Data Commons Open Database License v1.0" to SPDXLicense.ODBL_1_0,
        "Open Data Commons Attribution License v1.0" to SPDXLicense.ODC_BY_1_0,
        "OFFIS License" to SPDXLicense.OFFIS,
        "SIL Open Font License 1.0" to SPDXLicense.OFL_1_0,
        "SIL Open Font License 1.0 with no Reserved Font Name" to SPDXLicense.OFL_1_0_NO_RFN,
        "SIL Open Font License 1.0 with Reserved Font Name" to SPDXLicense.OFL_1_0_RFN,
        "SIL Open Font License 1.1" to SPDXLicense.OFL_1_1,
        "SIL Open Font License 1.1 with no Reserved Font Name" to SPDXLicense.OFL_1_1_NO_RFN,
        "SIL Open Font License 1.1 with Reserved Font Name" to SPDXLicense.OFL_1_1_RFN,
        "OGC Software License, Version 1.0" to SPDXLicense.OGC_1_0,
        "Taiwan Open Government Data License, version 1.0" to SPDXLicense.OGDL_TAIWAN_1_0,
        "Open Government Licence - Canada" to SPDXLicense.OGL_CANADA_2_0,
        "Open Government Licence v1.0" to SPDXLicense.OGL_UK_1_0,
        "Open Government Licence v2.0" to SPDXLicense.OGL_UK_2_0,
        "Open Government Licence v3.0" to SPDXLicense.OGL_UK_3_0,
        "Open Group Test Suite License" to SPDXLicense.OGTSL,
        "Open LDAP Public License v1.1" to SPDXLicense.OLDAP_1_1,
        "Open LDAP Public License v1.2" to SPDXLicense.OLDAP_1_2,
        "Open LDAP Public License v1.3" to SPDXLicense.OLDAP_1_3,
        "Open LDAP Public License v1.4" to SPDXLicense.OLDAP_1_4,
        "Open LDAP Public License v2.0 (or possibly 2.0A and 2.0B)" to SPDXLicense.OLDAP_2_0,
        "Open LDAP Public License v2.0.1" to SPDXLicense.OLDAP_2_0_1,
        "Open LDAP Public License v2.1" to SPDXLicense.OLDAP_2_1,
        "Open LDAP Public License v2.2" to SPDXLicense.OLDAP_2_2,
        "Open LDAP Public License v2.2.1" to SPDXLicense.OLDAP_2_2_1,
        "Open LDAP Public License 2.2.2" to SPDXLicense.OLDAP_2_2_2,
        "Open LDAP Public License v2.3" to SPDXLicense.OLDAP_2_3,
        "Open LDAP Public License v2.4" to SPDXLicense.OLDAP_2_4,
        "Open LDAP Public License v2.5" to SPDXLicense.OLDAP_2_5,
        "Open LDAP Public License v2.6" to SPDXLicense.OLDAP_2_6,
        "Open LDAP Public License v2.7" to SPDXLicense.OLDAP_2_7,
        "Open LDAP Public License v2.8" to SPDXLicense.OLDAP_2_8,
        "Open Logistics Foundation License Version 1.3" to SPDXLicense.OLFL_1_3,
        "Open Market License" to SPDXLicense.OML,
        "OpenPBS v2.3 Software License" to SPDXLicense.OPENPBS_2_3,
        "OpenSSL License" to SPDXLicense.OPENSSL,
        "Open Public License v1.0" to SPDXLicense.OPL_1_0,
        "United Kingdom Open Parliament Licence v3.0" to SPDXLicense.OPL_UK_3_0,
        "Open Publication License v1.0" to SPDXLicense.OPUBL_1_0,
        "OSET Public License version 2.1" to SPDXLicense.OSET_PL_2_1,
        "Open Software License 1.0" to SPDXLicense.OSL_1_0,
        "Open Software License 1.1" to SPDXLicense.OSL_1_1,
        "Open Software License 2.0" to SPDXLicense.OSL_2_0,
        "Open Software License 2.1" to SPDXLicense.OSL_2_1,
        "Open Software License 3.0" to SPDXLicense.OSL_3_0,
        "Open Use of Data Agreement v1.0" to SPDXLicense.O_UDA_1_0,

        "PADL License" to SPDXLicense.PADL,
        "The Parity Public License 6.0.0" to SPDXLicense.PARITY_6_0_0,
        "The Parity Public License 7.0.0" to SPDXLicense.PARITY_7_0_0,
        "ODC Public Domain Dedication & License 1.0" to SPDXLicense.PDDL_1_0,
        "Open Data Commons Public Domain Dedication & License 1.0" to SPDXLicense.PDDL_1_0,
        "PHP License v3.0" to SPDXLicense.PHP_3_0,
        "PHP License v3.01" to SPDXLicense.PHP_3_01,
        "Plexus Classworlds License" to SPDXLicense.PLEXUS,
        "pnmstitch License" to SPDXLicense.PNMSTITCH,
        "PolyForm Noncommercial License 1.0.0" to SPDXLicense.POLYFORM_NONCOMMERCIAL_1_0_0,
        "PolyForm Small Business License 1.0.0" to SPDXLicense.POLYFORM_SMALL_BUSINESS_1_0_0,
        "PostgreSQL License" to SPDXLicense.POSTGRESQL,
        "psfrag License" to SPDXLicense.PSFRAG,
        "Python Software Foundation License 2.0" to SPDXLicense.PSF_2_0,
        "psutils License" to SPDXLicense.PSUTILS,
        "Public Domain" to SPDXLicense.PUBLIC_DOMAIN,
        "Python License 2.0" to SPDXLicense.PYTHON_2_0,
        "Python License 2.0.1" to SPDXLicense.PYTHON_2_0_1,
        "Python ldap License" to SPDXLicense.PYTHON_LDAP,

        "Qhull License" to SPDXLicense.QHULL,
        "Q Public License 1.0" to SPDXLicense.QPL_1_0,
        "Q Public License 1.0 - INRIA 2004 variant" to SPDXLicense.QPL_1_0_INRIA_2004,

        "Rdisc License" to SPDXLicense.RDISC,
        "Red Hat eCos Public License v1.1" to SPDXLicense.RHECOS_1_1,
        "Reciprocal Public License 1.1" to SPDXLicense.RPL_1_1,
        "Reciprocal Public License 1.5" to SPDXLicense.RPL_1_5,
        "RealNetworks Public Source License v1.0" to SPDXLicense.RPSL_1_0,
        "RSA Message-Digest License" to SPDXLicense.RSA_MD,
        "Ricoh Source Code Public License" to SPDXLicense.RSCPL,
        "Ruby License" to SPDXLicense.RUBY,

        "Saxpath License" to SPDXLicense.SAXPATH,
        "Sax Public Domain Notice" to SPDXLicense.SAX_PD,
        "SCEA Shared Source License" to SPDXLicense.SCEA,
        "Scheme Language Report License" to SPDXLicense.SCHEMEREPORT,
        "Sendmail License" to SPDXLicense.SENDMAIL,
        "Sendmail License 8.23" to SPDXLicense.SENDMAIL_8_23,
        "SGI Free Software License B v1.0" to SPDXLicense.SGI_B_1_0,
        "SGI Free Software License B v1.1" to SPDXLicense.SGI_B_1_1,
        "SGI Free Software License B v2.0" to SPDXLicense.SGI_B_2_0,
        "SGI OpenGL License" to SPDXLicense.SGI_OPENGL,
        "SGP4 Permission Notice" to SPDXLicense.SGP4,
        "Solderpad Hardware License v0.5" to SPDXLicense.SHL_0_5,
        "Solderpad Hardware License, Version 0.51" to SPDXLicense.SHL_0_51,
        "Simple Public License 2.0" to SPDXLicense.SIMPL_2_0,
        "Sun Industry Standards Source License v1.1" to SPDXLicense.SISSL,
        "Sun Industry Standards Source License v1.2" to SPDXLicense.SISSL_1_2,
        "SL License" to SPDXLicense.SL,
        "Sleepycat License" to SPDXLicense.SLEEPYCAT,
        "Standard ML of New Jersey License" to SPDXLicense.SMLNJ,
        "Secure Messaging Protocol Public License" to SPDXLicense.SMPPL,
        "SNIA Public License 1.1" to SPDXLicense.SNIA,
        "snprintf License" to SPDXLicense.SNPRINTF,
        "Soundex License" to SPDXLicense.SOUNDEX,
        "Spencer License 86" to SPDXLicense.SPENCER_86,
        "Spencer License 94" to SPDXLicense.SPENCER_94,
        "Spencer License 99" to SPDXLicense.SPENCER_99,
        "Sun Public License v1.0" to SPDXLicense.SPL_1_0,
        "ssh-keyscan License" to SPDXLicense.SSH_KEYSCAN,
        "SSH OpenSSH license" to SPDXLicense.SSH_OPENSSH,
        "SSH short notice" to SPDXLicense.SSH_SHORT,
        "Server Side Public License, v 1" to SPDXLicense.SSPL_1_0,
        "SugarCRM Public License v1.1.3" to SPDXLicense.SUGARCRM_1_1_3,
        "SunPro License" to SPDXLicense.SUNPRO,
        "Scheme Widget Library (SWL) Software License Agreement" to SPDXLicense.SWL,
        "swrule License" to SPDXLicense.SWRULE,
        "Symlinks License" to SPDXLicense.SYMLINKS,

        "TAPR Open Hardware License v1.0" to SPDXLicense.TAPR_OHL_1_0,
        "TCL/TK License" to SPDXLicense.TCL,
        "TCP Wrappers License" to SPDXLicense.TCP_WRAPPERS,
        "TermReadKey License" to SPDXLicense.TERMREADKEY,
        "TMate Open Source License" to SPDXLicense.TMATE,
        "TORQUE v2.5+ Software License v1.1" to SPDXLicense.TORQUE_1_1,
        "Trusster Open Source License" to SPDXLicense.TOSL,
        "Time::ParseDate License" to SPDXLicense.TPDL,
        "THOR Public License 1.0" to SPDXLicense.TPL_1_0,
        "Text-Tabs+Wrap License" to SPDXLicense.TTWL,
        "TTYP0 License" to SPDXLicense.TTYP0,
        "Technische Universitaet Berlin License 1.0" to SPDXLicense.TU_BERLIN_1_0,
        "Technische Universitaet Berlin License 2.0" to SPDXLicense.TU_BERLIN_2_0,

        "UCAR License" to SPDXLicense.UCAR,
        "Upstream Compatibility License v1.0" to SPDXLicense.UCL_1_0,
        "ulem License" to SPDXLicense.ULEM,
        "Unicode License Agreement - Data Files and Software (2015)" to SPDXLicense.UNICODE_DFS_2015,
        "Unicode License Agreement - Data Files and Software (2016)" to SPDXLicense.UNICODE_DFS_2016,
        "Unicode Terms of Use" to SPDXLicense.UNICODE_TOU,
        "UnixCrypt License" to SPDXLicense.UNIXCRYPT,
        "The Unlicense" to SPDXLicense.UNLICENSE,
        "Universal Permissive License v1.0" to SPDXLicense.UPL_1_0,
        "Utah Raster Toolkit Run Length Encoded License" to SPDXLicense.URT_RLE,

        "Vim License" to SPDXLicense.VIM,
        "VOSTROM Public License for Open Source" to SPDXLicense.VOSTROM,
        "Vovida Software License v1.0" to SPDXLicense.VSL_1_0,

        "W3C Software Notice and License (2002-12-31)" to SPDXLicense.W3C,
        "W3C Software Notice and License (1998-07-20)" to SPDXLicense.W3C_19980720,
        "W3C Software Notice and Document License (2015-05-13)" to SPDXLicense.W3C_20150513,
        "w3m License" to SPDXLicense.W3M,
        "Sybase Open Watcom Public License 1.0" to SPDXLicense.WATCOM_1_0,
        "Widget Workshop License" to SPDXLicense.WIDGET_WORKSHOP,
        "Wsuipa License" to SPDXLicense.WSUIPA,
        "Do What The F*ck You Want To Public License" to SPDXLicense.WTFPL,

        "X11 License" to SPDXLicense.X11,
        "X11 License Distribution Modification Variant" to SPDXLicense.X11_DISTRIBUTE_MODIFICATIONS_VARIANT,
        "Xdebug License v 1.03" to SPDXLicense.XDEBUG_1_03,
        "Xerox License" to SPDXLicense.XEROX,
        "Xfig License" to SPDXLicense.XFIG,
        "XFree86 License 1.1" to SPDXLicense.XFREE86_1_1,
        "xinetd License" to SPDXLicense.XINETD,
        "xlock License" to SPDXLicense.XLOCK,
        "X.Net License" to SPDXLicense.XNET,
        "XPP License" to SPDXLicense.XPP,
        "XSkat License" to SPDXLicense.XSKAT,

        "Yahoo! Public License v1.0" to SPDXLicense.YPL_1_0,
        "Yahoo! Public License v1.1" to SPDXLicense.YPL_1_1,

        "Zed License" to SPDXLicense.ZED,
        "Zeeff License" to SPDXLicense.ZEEFF,
        "Zend License v2.0" to SPDXLicense.ZEND_2_0,
        "Zimbra Public License v1.3" to SPDXLicense.ZIMBRA_1_3,
        "Zimbra Public License v1.4" to SPDXLicense.ZIMBRA_1_4,
        "zlib License" to SPDXLicense.ZLIB,
        "zlib/libpng License with Acknowledgement" to SPDXLicense.ZLIB_ACKNOWLEDGEMENT,
        "Zope Public License 1.1" to SPDXLicense.ZPL_1_1,
        "Zope Public License 2.0" to SPDXLicense.ZPL_2_0,
        "Zope Public License 2.1" to SPDXLicense.ZPL_2_1,
    )

    private val nameList = nameMap.keys
    private val identifierList = nameMap.values.map { it.csvName }

    private const val MATCH_THRESHOLD = 90
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy