https://github.com/avram/guphrase
Globally unique phrases
https://github.com/avram/guphrase
Last synced: 3 months ago
JSON representation
Globally unique phrases
- Host: GitHub
- URL: https://github.com/avram/guphrase
- Owner: avram
- Created: 2014-10-14T16:32:19.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2015-12-31T23:35:29.000Z (over 10 years ago)
- Last Synced: 2025-12-28T22:57:52.887Z (7 months ago)
- Language: Java
- Size: 1.36 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
guphrase
========
[](https://travis-ci.org/avram/guphrase)
Toy utility to represent UUIDs as phrases from an agreed-upon dictionary.
```java
UUID uuid = UUID.randomUUID();
Dictionary dictionary = new WordListResourceDictionary("/354984si.ngl");
String output = GuPhrase.phraseForUUID(uuid, dictionary);
uuid = c6da2d3d-b8c5-49e3-a338-798fae5b3c8b
output = pua-yen-gulfs-wage-glucolysis-doorframe-heynne
```
Or use a morpheme list to make a "word":
```java
UUID uuid = UUID.randomUUID();
Dictionary dictionary = new WordListResourceDictionary("/cogna-sorted.morphemes");
String output = GuPhrase.pseudoWordForUUID(uuid, dictionary);
uuid = 3e9d3cae-1780-4768-aa2f-bf63cd92c030
output = estrorsephosafuciteginotocosmafunctestereocopistigac
```