No commit activity in last 3 years
No release in over 3 years
Rubygem implements Skeleton algorithm from Unicode TR39 to dectect Unicode confusables.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.1
 Project Readme

TR39 confusables

This gem implements skeleton algorithm from Unicode TR39

Usages

require 'tr39_confusables'

Tr39Confusables.skeleton("𝔭𝒢ỿ𝕑𝕒ℓ")  # "paypal"
Tr39Confusables.is_confusable?("scope", "scope")  # true

Note on the use of Skeleton, from TR39:

A skeleton is intended only for internal use for testing confusability of strings; the resulting text is not suitable for display to users, because it will appear to be a hodgepodge of different scripts. In particular, the result of mapping an identifier will not necessary be an identifier. Thus the confusability mappings can be used to test whether two identifiers are confusable (if their skeletons are the same), but should definitely not be used as a "normalization" of identifiers.