Giter Site home page Giter Site logo

helpdeskid's Introduction

HelpDeskId

Generates identifiers that humans can exchange easily.

The objective for this library is to be able to generate identifiers that can be communicated to humans in case of error. Some systems generate an Operation/Error Id (a GUID-like string), but it is usually rather cumbersome to communicate either orally or via a screenshot. This allows you to generate identifiers in the form of triplets of common words (e.g. "moon-shadow-list").

Be aware though that these identifiers are not guaranteed to be unique. There are not a replacement for GUIDs.

License Build Status Nuget

Getting Started

Install the package:

Install-Package HelpDeskId
var generator = new HelpDeskIdGenerator();

// Generate an id using the CultureInfo.CurrentCulture if available with a fallback to english words.
var helpDeskId = generator.GenerateReadableId(); // "desk-plastic-record"

// Specify the source dictionary to use, in this case french words.
helpDeskId = generator.GenerateReadableId(CultureInfo.GetCultureInfo("fr")); // "essayer-debut-avancer"

Features

  • The number of words and the separator can be customized in the constructor:
var generator = new HelpDeskIdGenerator(numberOfWords: 2, separator: "/");
var helpDeskId = generator.GenerateReadableId(); // "another/one"
  • Currently, only english (default) and french ("fr") source words are supported (PR welcomed!). They represent common words in these languages, where swear words have been curated. The list can be customized by providing a IWordsProvider implementation.

Changelog

Please consult the CHANGELOG for more information about version history.

License

This project is licensed under the Apache 2.0 license - see the LICENSE file for details.

Contributing

Please read CONTRIBUTING.md for details on the process for contributing to this project.

Be mindful of our Code of Conduct.

helpdeskid's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

helpdeskid's Issues

Remove offensive words from generated IDs

Expected Behavior

Generated IDs do not contain words or combinations that may be deemed offensive. Our PO has identified the following 3 words for starters: stupid, worst, love. He is currently working on a complete list (including french too).

Actual Behavior

The list of words used for generating IDs contain several words that can be offensive to the user (e.g. stupid) or words who combined together could be considered as negative or inappropriate (e.g. worst-love).

image

Steps to Reproduce the Problem

Specifications

  • Version: 1.0.0
  • Platform: all
  • Subsystem:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.