Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update languages #239

Merged
merged 2 commits into from
Sep 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions data-scripts/lists.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,11 +375,16 @@ export default {
},
},
'ar': {
commonWords: {
source:
'https://raw.githubusercontent.com/hermitdave/FrequencyWords/master/content/2018/ar/ar_full.txt',
options: { hasOccurrences: true, normalizeDiacritics: true },
},
/**
* Exclusion of Common Words in Arabic Language for Passwords
* 1. **Arabic Letter Usage**: In practice, speakers of the Arabic language often do not use standard Arabic letters in their passwords. When they do, the passwords are generally more secure.
* 2. **Lack of Standardized Romanization**: Unlike languages such as Japanese, there is no widely-accepted method for converting Arabic letters into Roman letters. This makes it challenging to apply a common conversion algorithm for password security.
*/
// commonWords: {
// source:
// 'https://raw.githubusercontent.com/hermitdave/FrequencyWords/master/content/2018/ar/ar_full.txt',
// options: { hasOccurrences: true, normalizeDiacritics: true },
// },
firstnames: {
source:
'https://raw.githubusercontent.com/AKhateeb/arabic-names/master/Most-Popular-Arabic-FirstNames.txt',
Expand Down
1 change: 0 additions & 1 deletion packages/languages/ar/src/commonWords.json

This file was deleted.

2 changes: 1 addition & 1 deletion packages/languages/ar/src/firstnames.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
["aban","abbas","abbud","aboud","abdul-alim","abdul-aliyy","abdul-azim","abdul-aziz","abdul-bari","abdul-basit","abdul-fattah","abdul-ghaffar","abdul-hadi","abdul-hafiz","abdul-hakam","abdul-hakim","abdul-halim","abdul-hamid","abdul-haqq","abdul-hasib","abdul-jabbar","abdul-jalil","abdul-karim","abdul-khaliq","abdullah","abdul-latif","abdul-majid","abdul-malik","abdul-mu'izz","abdul-mujib","abdul-muta'al","abdul-muttalib","abdul-nasir","abdul-nasser","abdul-qadir","abdul-qahhar","abdul-quddus","abdul-rafi","abdul-rahim","abdul-rahman","abdul-rashid","abdul-ra'uf","abdul-razzaq","abdul-sabur","abdul-salam","abdul-samad","abdul-sami","abdul-shakur","abdul-tawwab","abdul-wadud","abdul-wahhab","abdul-wahid","abraha","adel","adham","adnan","afif","ahmad","ahmed","akil","akram","ala'a","alaa","aladdin","ali","alim","altair","ameer","amir","amid","amin","amjad","ammar","amr","anbar","anis","anwar","arfan","arif","asad","asadel","ashraf","asim","aswad","ata","atif","awad","ayman","ayyad","ayyub","aza","azeem","azhar","azzam","badr","baha","bahir","barakah","bashshar","basil","bassam","bilal","bishr","boulos","burhan","bursuq","butrus","dabir","da'ud","dharr","dhul","diya","duqaq","emir","esam","fadi","fadil","fahd","faisal","fakhir","fakhiri","fakih","farid","fariq","faris","farraj","faruq","fath","fatin","fawwaz","fawzi","ferran","fida","firas","fouad","fudail","gamal","ghalib","ghassan","ghazi","ghiyath","habib","hadad","haddad","hadi","hajjaj","hakeem","hakem","halim","hamal","hamdan","hamid","hamzah","hana","hanbal","hani","hanif","harith","haroun","hasan","hashim","hassan","hatim","haytham","hilal","hilel","hisham","hud","hudhayfah","humam","husain","husam","husayn","ibrahim","idris","ihsan","imad","isa","isam","ishaq","isma'il","isra","izz","jabbar","jabir","jafar","jalal","jalil","jamal","jameel","jawad","jawhar","jibril","jihad","jubair","jumah","kadar","kadeen","kadeer","kahil","kaliq","kamal","kameel","kardal","kareef","kareem","kaseeb","kaseem","kateb","khaldun","khalid","khalil","khatib","khayr","khayri","khoury","khuzaymah","kutaiba","labib","labid","lahab","latif","luqman","lutfi","mahdi","mahir","mahmud","maimun","majid","makin","malik","ma'mun","ma'n","mansur","mansour","marid","marzuq","mash'al","masruq","mas'ud","maudad","mazin","mika","misbah","mohammed","mohamed","mohamad","mohammad","mohsen","mu'adh","mu'awiyah","mu'ayyad","mubarak","mufid","muhammad","muhsin","muhtadi","mujahid","mukhtar","mundhir","munir","muntasir","murtadi","musa","mus'ad","muslim","mustafa","muta","mu'tasim","mu'tazz","muti","muwaffaq","nabhan","nabil","nadhir","nadim","nadir","na'il","naim","naji","najib","najjar","najm","nasih","nasim","nasir","nasser","nawaf","nazih","nazim","nuh","numair","nu'man","nur","nuri","omar","othman","qadir","qaraja","qasim","qais","qays","qudamah","qutaiba","qutuz","rabah","rabi","radi","rafi","rafiq","raghib","rahman","ra'id","raed","rais","rakin","rashad","rashid","ratib","rayhan","reda","ridwan","riyad","sabih","sabir","sa'd","sadaqat","sa'eed","safwan","salah","saleh","salim","salman","sameh","sami","samir","samman","saqr","sariyah","sayyar","sayyid","seif","shadi","shafiq","shakir","sharif","shihab","siraj","sofian","subhi","suhail","suhayb","sulaiman","su'ud","tahir","talal","talib","tamir","tammam","tamman","tarif","tariq","tawfiq","taymullah","taysir","tayyib","thabit","ubadah","ubaid","ubayy","umar","umarah","umayr","usama","utbah","uthman", "wadi","wafid","wafiq","wahib","wahid","wa'il","wael","wajih","wakil","waleed","walliyullah","wasim","wazir","yahyah","yaman","ya'qub","yasar","yasin","yasir","yazid","yunus","yusef","yushua","yusuf","zafar","zafir","zahid","zahir","zaid","zaim","zaki","zakiyy","ziyad","zubair","zuhair"]
["aban","abbas","abbud","abdul-alim","abdul-aliyy","abdul-azim","abdul-aziz","abdul-bari","abdul-basit","abdul-fattah","abdul-ghaffar","abdul-hadi","abdul-hafiz","abdul-hakam","abdul-hakim","abdul-halim","abdul-hamid","abdul-haqq","abdul-hasib","abdul-jabbar","abdul-jalil","abdul-karim","abdul-khaliq","abdu'llah","abdul-latif","abdul-majid","abdul-malik","abdul-mu'izz","abdul-mujib","abdul-muta'al","abdul-muttalib","abdul-nasir","abdul-nasser","abdul-qadir","abdul-qahhar","abdul-quddus","abdul-rafi","abdul-rahim","abdul-rahman","abdul-rashid","abdul-ra'uf","abdul-razzaq","abdul-sabur","abdul-salam","abdul-samad","abdul-sami","abdul-shakur","abdul-tawwab","abdul-wadud","abdul-wahhab","abdul-wahid","abraha","adel","adham","adnan","afif","ahmad","akil","akram","ala'a","aladdin","ali","alim","altair","ameer","amid","amin","amjad","ammar","amr","anbar","anis","anwar","arfan","arif","asad","asadel","ashraf","asim","aswad","ata","atif","awad","ayman","ayyad","ayyub","aza","azeem","azhar","azzam","badr","baha","bahir","barakah","bashshar","basil","bassam","bilal","bishr","boulos","burhan","bursuq","butrus","dabir","da'ud","dharr","dhul","diya","duqaq","emir","esam","fadi","fadil","fahd","faisal","fakhir","fakhiri","fakih","farid","fariq","faris","farraj","faruq","fath","fatin","fawwaz","fawzi","ferran","fida","firas","fouad","fudail","gamal","ghalib","ghassan","ghazi","ghiyath","habib","hadad","haddad","hadi","hajjaj","hakeem","hakem","halim","hamal","hamdan","hamid","hamzah","hana","hanbal","hani","hanif","harith","haroun","hasan","hashim","hassan","hatim","haytham","hilal","hilel","hisham","hud","hudhayfah","humam","husain","husam","husayn","ibrahim","idris","ihsan","imad","isa","isam","ishaq","isma'il","isra","izz","jabbar","jabir","jafar","jalal","jalil","jamal","jameel","jawad","jawhar","jibril","jihad","jubair","jumah","kadar","kadeen","kadeer","kahil","kaliq","kamal","kameel","kardal","kareef","kareem","kaseeb","kaseem","kateb","khaldun","khalid","khalil","khatib","khayr","khayri","khoury","khuzaymah","kutaiba","labib","labid","lahab","latif","luqman","lutfi","mahdi","mahir","mahmud","maimun","majid","makin","malik","ma'mun","ma'n","mansur","marid","marzuq","mash'al","masruq","mas'ud","maudad","mazin","mika","misbah","mohammed","mohsen","mu'adh","mu'awiyah","mu'ayyad","mubarak","mufid","muhammad","muhsin","muhtadi","mujahid","mukhtar","mundhir","munir","muntasir","murtadi","musa","mus'ad","muslim","mustafa","muta","mu'tasim","mu'tazz","muti","muwaffaq","nabhan","nabil","nadhir","nadim","nadir","na'il","naim","naji","najib","najjar","najm","nasih","nasim","nasir","nasser","nawaf","nazih","nazim","nuh","numair","nu'man","nur","nuri","omar","othman","qadir","qaraja","qasim","qays","qudamah","qutaiba","qutuz","rabah","rabi","radi","rafi","rafiq","raghib","rahman","ra'id","rais","rakin","rashad","rashid","ratib","rayhan","reda","ridwan","riyad","sabih","sabir","sa'd","sadaqat","sa'eed","safwan","salah","saleh","salim","salman","sameh","sami","samir","samman","saqr","sariyah","sayyar","sayyid","seif","shadi","shafiq","shakir","sharif","shihab","siraj","sofian","subhi","suhail","suhayb","sulaiman","su'ud","tahir","talal","talib","tamir","tammam","tamman","tarif","tariq","tawfiq","taymullah","taysir","tayyib","thabit","ubadah","ubaid","ubayy","umar","umarah","umayr","usama","utbah","uthman","wadi","wafid","wafiq","wahib","wahid","wa'il","wajih","wakil","waleed","walliyullah","wasim","wazir","yahyah","yaman","ya'qub","yasar","yasin","yasir","yazid","yunus","yusef","yushua","yusuf","zafar","zafir","zahid","zahir","zaid","zaim","zaki","zakiyy","ziyad","zubair","zuhair"]
3 changes: 1 addition & 2 deletions packages/languages/ar/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
// This file is auto generated by data-scripts/_helpers/runtime.ts
import commonWords from './commonWords.json'
import firstnames from './firstnames.json'
import lastnames from './lastnames.json'
import wikipedia from './wikipedia.json'
import translations from './translations'

const dictionary = { commonWords, firstnames, lastnames, wikipedia }
const dictionary = { firstnames, lastnames, wikipedia }

export { dictionary, translations }
8 changes: 5 additions & 3 deletions packages/languages/common/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import * as tempAdjacencyGraphs from './adjacencyGraphs.json'
import passwords from './passwords.json'
import tempAdjacencyGraphs from './adjacencyGraphs.json'
import diceware from './diceware.json'
import passwords from './passwords.json'

const dictionary = { diceware, passwords }

const dictionary = { passwords, diceware }
// reinit the variable because the typescript compile will otherwise just reexport the json file which will break as it's a json file
const adjacencyGraphs = tempAdjacencyGraphs

export { dictionary, adjacencyGraphs }
8 changes: 2 additions & 6 deletions packages/languages/de/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
// This file is auto generated by data-scripts/_helpers/runtime.ts
import commonWords from './commonWords.json'
import firstnames from './firstnames.json'
import lastnames from './lastnames.json'
import wikipedia from './wikipedia.json'
import translations from './translations'

const dictionary = {
commonWords,
firstnames,
lastnames,
wikipedia,
}
const dictionary = { commonWords, firstnames, lastnames, wikipedia }

export { dictionary, translations }
8 changes: 2 additions & 6 deletions packages/languages/en/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
// This file is auto generated by data-scripts/_helpers/runtime.ts
import commonWords from './commonWords.json'
import firstnames from './firstnames.json'
import lastnames from './lastnames.json'
import wikipedia from './wikipedia.json'
import translations from './translations'

const dictionary = {
commonWords,
firstnames,
lastnames,
wikipedia,
}
const dictionary = { commonWords, firstnames, lastnames, wikipedia }

export { dictionary, translations }
Loading