bellingcat / alias-generator Goto Github PK
View Code? Open in Web Editor NEWNode module to generate likely aliases for a given human name
Home Page: https://www.npmjs.com/package/@bellingcat/alias-generator
License: MIT License
Node module to generate likely aliases for a given human name
Home Page: https://www.npmjs.com/package/@bellingcat/alias-generator
License: MIT License
Take a optional argument for locale and use this to influence the types of variants returned, such as culturally specific name-order conventions, and alternative transliterations.
getAliases("Hayao Miyazaki", "jp") => [ ... , "Miyazaki Hayao", ...]
getAliases("Екатерина Александровна Гордеева", "ru") => [... "Ekaterina Alexandrovna Gordeeva", ...]
Probably as a separate feature/function:
getUsernames("John Doe") => [ j.doe, jdoe, doejohn ]
There's just a basic smoke test at time of writing, but we should have a proper test suite with lots of different examples.
Tailor name proposals according to the submissions in singular form:
last-name, first-name
only where applicableI realize this hits an edge-case that goes against best practice (fully qualify the name where possible). However, there are likely valid use-cases where only one name is known.
Currently, alias generator does not predict common spellings. For example:
Josef
/ Joseph
Philipp
/ Phillip
/ Philip
Especially in multilingual contexts, it is common for one person to use multiple such variants.
I don't know much about this topic, but Bohemian people historically used both German and Czech variants of their names. These are currently not predicted by the name variant search tool.
One example is:
Dora Rudolfine Richter
, also known as Dora Rudolfa Richterová
van der Laan -> v.d. Laan
From social media feedback: "I have three first names, the third one is my primary day to day one (not uncommon for swedes). But combinations generated only care about my first first name. "
For example, a search for "Qasim Suleymany" should return:
alias generator fails to predict common German nicknames, such as:
Anton
→ Toni
Josef
→ Sepp
Johannes
→ Hans
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.