@zxcvbn-ts/language-pl
v4.1.1
Published
The Polish language package for zxcvbn-ts
Downloads
16,808
Maintainers
Readme
@zxcvbn-ts/language-pl
The Polish dictionary and language package for zxcvbn-ts
Install
npm:
npm install @zxcvbn-ts/language-pl --save
yarn:
yarn add @zxcvbn-ts/language-pl
Setup
import { ZxcvbnFactory } from '@zxcvbn-ts/core'
import * as zxcvbnCommonPackage from '@zxcvbn-ts/language-common'
import * as zxcvbnPlPackage from '@zxcvbn-ts/language-pl'
const password = 'somePassword'
const options = {
translations: zxcvbnPlPackage.translations,
graphs: zxcvbnCommonPackage.adjacencyGraphs,
dictionary: {
...zxcvbnCommonPackage.dictionary,
...zxcvbnPlPackage.dictionary,
},
}
const zxcvbn = new ZxcvbnFactory(options)
zxcvbn.check(password)Sources
- The first and last name data used as a dictionary for zxcvbn-ts are extracted from files available on the Polish Government Data Portal.
- These lists are ranked by popularity and consist of the names of individuals registered in the Polish Universal Electronic System for Population Register (PESEL). They may also include the names of foreigners, such as refugees from Ukraine, who were assigned a PESEL number following the Russian invasion of Ukraine.
- Last Names Dataset (CC0 1.0 licensed)
- First Names Dataset (CC0 1.0 licensed)
commonWords.jsonis generated from the OPUS 2024 OpenSubtitles list, which is licensed under ODC-BY.
Author
The Polish dictionary and language package was prepared by Oskar Gmerek | GitHub
