Live data from Hacker News

Betty – English-like interface for the command line

github.com

41–50 of 84 posts

Re: Betty – English-like interface for the command line

#41
Every natural language interface eventually will be required to generate a new program. For example, if you say my parser supports query like "count number of words in file X", someone would want to issue a queries like "count number of words starting with character a and at most length 3 in file X" and so on.

Natural language interfaces eventually fall on its face not because parsing is really hard but rather because after you parse, how do you generate a program on the fly to solve the user's problem.

Re: Betty – English-like interface for the command line

#43
Other than being fun; I can't quite see the benefit of making my shell more verbose. I'm sure I am not the only one who can get by with the regular commands through mnemonics.

And to further my point; if this was such a good idea, then why has nobody aliased 'ls' to list, 'cp' to copy, (etc.)? Or, while we're at it, 'list files', or 'list files in current directory'. Maybe someone has and I just didn't meet them yet.

I do see the point of a programming language to be a bit more verbose, since it makes sharing between humans easier, as understanding old codebases – but even there, people are split (Java is too verbose! Ruby is natural! Lisp is too much abbreviated! etc.). But using a shell, issuing commands, is fundamentally different to programming, in my opinion. Consider the analogy of a crane (just to avoid cars for once), what would you prefer: Waving your finger around in thin air, or using levers? And before you answer that: while the former seems way more cool, it doesn't work well. Getting rid of mechanical controls has been tried experimentally by the Air force (I read that back in the 90's; sorry no link to a source now): They were able to interpret commands from the pilots brainwaves, but manual control was consistently faster. We humans just evolved this way: Thinking of moving a plane into particular direction is slower than moving your hand accordingly to yank a stick – it seems to have a higher more mental load for us. Do you picture your arm moving your mouse? I bet you "just do".

But I digress; though the fundamentals in play are the same. My fingers are fast; why should I slow down the whole thing by making them type more?

Of course, a shell using of single-letter commands would be equally useless to an overly verbose shell. The sweet spot, in the end, might be a personal preference and dependent of daily usage and experience. In my case, that's a bit more than the POSIX command set, and – to exaggerate a bit – not writing essays on the command line.

Re: Betty – English-like interface for the command line

#44
Interesting project. I know for us geeks the short obscure commands are sometimes easier but something like this can ease people into using command line more.

I applaud the author because typically I don't have the courage to even attempt solving problems like this. And I wonder what the author is going to do about this.

Because well ... natural-language processing just isn't there yet, you can kind of "fake" it a bit by looking for keywords and patterns and regex but it only goes so far.

So beyond a certain point, you end up needing to solve the natural-language processing problem first, so that you can then build Betty.

Re: Betty – English-like interface for the command line

#45

Why are all computerized natural-language "assistants" all modeled as female? (Siri, Cortana, Betty...) A remnant of the view of women's role as "secretaries"? It's interesting to see that this applies to real-world products, which are still kind of "dumb" or single-minded (as in default voices for GPS navigation assistants), while in fiction, when computers are smarter than its owner (HAL, Jarvis) they more are ofte…

AFAIK, J.A.R.V.I.S. was modeled after a butler. As a counterexample for smarter-than-its-owner AI you have Jane from Ender's Game series.

Re: Betty – English-like interface for the command line

#46
post #34

Crazier alternative: 1) Install howdoi https://github.com/gleitz/howdoi 2) Write commands like the following (all work as expected): howdoi get time in bash | sh howdoi clear bash | sh howdoi find current user bash | sh howdoi restart computer bash | sh howdoi fork bomb | sh #YOLO

It might be worth mentioning that howdoi is just a wrapper around a google (essentially a "I'm feeling luck"-search as far as I can tell)? It's hardly the same as a curated set of specialized pipes. Nor does it work offline (howdoi configure eth0/enable wireless...).

It actually uses StackOverflow.

Re: Betty – English-like interface for the command line

#47
post #34

Earlier quoted context omitted.

It might be worth mentioning that howdoi is just a wrapper around a google (essentially a "I'm feeling luck"-search as far as I can tell)? It's hardly the same as a curated set of specialized pipes. Nor does it work offline (howdoi configure eth0/enable wireless...).

It actually uses StackOverflow.

Indeed it does, I only read to around:

    SEARCH_URL = 'https://www.google.com/search?q=site:{0}%20{1}'
and didn't look much further.

Re: Betty – English-like interface for the command line

#48
post #43

Other than being fun; I can't quite see the benefit of making my shell more verbose. I'm sure I am not the only one who can get by with the regular commands through mnemonics. And to further my point; if this was such a good idea, then why has nobody aliased 'ls' to list , 'cp' to copy , (etc.)? Or, while we're at it, 'list files' , or 'list files in current directory' . Maybe someone has and I just didn't meet them…

http://www.computerhope.com/copyhlp.htm

Re: Betty – English-like interface for the command line

#49

This is an interesting idea, but I'm not sure it has much use outside of proof of concept. Most people don't need to use the command line, and those who do don't find it that difficult. In fact, for the most part the command line is very usable once you've learned the philosophy behind it. I remember reading something about the BSD flavors of UNIX along the lines of "BSD is very user friendly, just not for inexperien…

exactly .

Also this is not the best example to start with imo,

  betty whats my username
  Betty: Running whoami
  jrp
may be should put better example in the beginning

Re: Betty – English-like interface for the command line

#50

Why are all computerized natural-language "assistants" all modeled as female? (Siri, Cortana, Betty...) A remnant of the view of women's role as "secretaries"? It's interesting to see that this applies to real-world products, which are still kind of "dumb" or single-minded (as in default voices for GPS navigation assistants), while in fiction, when computers are smarter than its owner (HAL, Jarvis) they more are ofte…

I think it's partially region-based, in the United Kingdom, Siri is a male. (Perhaps it's somehow related to butlers, where as in the United States, secretaries were more common.)

Betty was also likely named Betty because of the last three letters, there's no voice with the application, it's only gendered because of the name.

Post reply on HN