FreeBSD.software
Home/textproc/rubygem-abbrev

rubygem-abbrev

0.1.2textproc

Calculate a set of unique abbreviations for a given set of strings

Given a set of strings, Abbrev calculates the set of unambiguous abbreviations for those strings, and returns a hash where the keys are all the possible abbreviations and the values are the full strings. Thus, given words is "car" and "cone", the keys pointing to "car" would be "ca" and "car", while those pointing to "cone" would be "co", "con", and "cone".

$pkg install rubygem-abbrev
github.com/ruby/abbrev
Origin
textproc/rubygem-abbrev
Size
14.1KiB
License
BSD2CLAUSE, RUBY
Maintainer
sunpoet@FreeBSD.org
Dependencies
2 packages
Required by
1 packages

Dependencies (2)

Required By (1)