Catalog PyPI
PACKAGE EXPLORERView in registry

abbreviate-names

PyPI

Uniquely abbreviate a set of names in a language-appropriate way.

abbreviateenglishlatinnames
Versions collected1
Direct dependencies2From release 0.1.2
Last observed20 Oct, 17:11 UTC

README

Version 0.1.2 documentation

abbreviate-names

Uniquely abbreviate a set of names in a language-appropriate way. The original intent was to shorten a collection of Latin species names such that they would fit more nicely into tables and graphs, but other applications abound!

This packages provides both

  • a programmatic API, names.abbreviate.abbreviate() and
  • a command line tool, abbreviate-names.

If installed with English or Latin options it also includes dependencies on natural language modules which enable it to break names up at syllable boundaries, which produces more readable results:

    pip install 'abbreviate-names[Latin,English]'

Example output

SpeciesAbbreviation using Latin syllables.. or by character
Agathidium laevigatumAgat.lae.A.l.
Agathidium nigrinumAgat.nigrinumA.nigrin.
Agathidium nigripenneAgat.nigripen.A.nigrip.
Agathidium seminulumAgat.se.A.s.
Agonum ericetiAgo.e.A.e.
Agonum fuliginosumAgo.fu.A.f.
Agonum gracileAgo.gra.A.g.
Lithocharis sp.Lit.sp.L.sp.
Xylocleptes bispinusXy.bis.X.b.
Xylodromus concinnusXy.con.X.c.
Xylodromus depressusXy.de.X.d.
Xylostiba monilicornisXy.mo.X.m.
Zeugophora subspinosaZeu.sub.Z.s.

Observe:

  • Several different words above are all shortened to “Xy.” or “X.” — it's the whole abbreviation that's unique, not the individual words.
  • The already-abbreviated “sp.” is untouched.

Online

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased]

[0.1.2] - 2020-08-31

Added

  • Initial version by @ConradHughes, including
    • library function,
    • command line script,
    • support for Latin and English.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.231 Aug 20202

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
conradhughes/abbreviate-names

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 17:11 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:3ca146cf903394d81363acddd83394f7fa10d0362d5d842e93cf89f2a49cc67f