jmsv / ety-python

A Python module to discover the etymology of words
http://ety-python.rtfd.io
MIT License
144 stars 18 forks source link

Unclear command line output with multiple words #25

Closed alxwrd closed 6 years ago

alxwrd commented 6 years ago

Currently, the output is a bit cramped for more than one word:

$ python -m ety cheese aerodynamically beer -r
chese (Middle English (1100-1500))
cese (Old English (ca. 450-1100))
-ally (English)
aerodynamic (English)
aero- (English)
dynamic (English)
ἀήρ (Ancient Greek (to 1453))
dynamique (French)
δυναμικός (Ancient Greek (to 1453))
δύναμις (Ancient Greek (to 1453))
δύναμαι (Ancient Greek (to 1453))
beere (Middle English (1100-1500))
bere (Middle English (1100-1500))
beor (Old English (ca. 450-1100))
bera (Old English (ca. 450-1100))
bēr (Old English (ca. 450-1100))

For the most part, it's ok, but could maybe add whitespace, or a horizontal rule (----).

jmsv commented 6 years ago

I blame @parker57 :wink: bfab36e37b4e422cff4ff78de5788e8dc2bc00a9

How could this be displayed better? Could use indentation e.g.:

cheese (English)
    chese (Middle English (1100-1500))
    cese (Old English (ca. 450-1100))

aerodynamically (English)
    -ally (English)
    aerodynamic (English)
    aero- (English)
    dynamic (English)
    ἀήρ (Ancient Greek (to 1453))
    dynamique (French)
    δυναμικός (Ancient Greek (to 1453))
    δύναμις (Ancient Greek (to 1453))
    δύναμαι (Ancient Greek (to 1453))

beer (English)
    beere (Middle English (1100-1500))
    bere (Middle English (1100-1500))
    beor (Old English (ca. 450-1100))
    bera (Old English (ca. 450-1100))
    bēr (Old English (ca. 450-1100))
alxwrd commented 6 years ago

I like indentation, although it feels a bit close to the output from tree. :thinking:

jmsv commented 6 years ago

Hows about a bullet pointy list then

cheese (English)
• chese (Middle English (1100-1500))
• cese (Old English (ca. 450-1100))
parker57 commented 6 years ago

How about this, might require some fuzzy logic idk

$ python -m ety cheese aerodynamically beer -r

jmsv commented 6 years ago

@parker57 cool idea! We could have an -e flag for emoji maybe?

The difficult part would be finding the relevant emojis for words :thinking: it might be worth opening a new issue for this