How do I verify that a string is in English?
I read a string from the console. How do I make sure it only contains English characters and digits? ...
I read a string from the console. How do I make sure it only contains English characters and digits? ...
Start with this: [G|C] * [T] * Write a program that generates this: Cat Cut Cute City <-- NOTE: this one is wrong, because City has an "ESS" sound at the start. Caught ... Gate Gotti Gut ... Kit Kite Kate Kata Katie Another Example, This: [C] * [T] * [N] Should produce this: Cotton Kitten Where should I start my research as...
What is the usual colloquial term for a number with an exponent in English? Is there something similar to 2 times 31 for "2*31"? What would you say if you were casually talking about such a number with another developer while you are both waiting in line to grab a cup of coffee? In German we say 2 hoch 31, but all the English forms I kn...
Hello, I am looking for some resources pertaining to the parsing and understanding of English (or just human language in general). While this is obviously a fairly complicated and wide field of study, I was wondering if anyone had any book or internet recommendations for study of the subject. I am aware of the basics, such as searching ...
As part of a larger project, I need to read in text and represent each word as a number. For example, if the program reads in "Every good boy deserves fruit", then I would get a table that converts 'every' to '1742', 'good' to '977513', etc. Now, obviously I can just use a hashing algorithm to get these numbers. However, it would be mo...
Hi folks, I'm have a list of articles, each article has its own title and description. Unfortunately, from the sources I am using, there is no way to know what language they are written. Also, text is not entirely written in 1 language; almost always English words are present. I reckon I would need dictionary databases stored on my...
I need to find some strings that the current version of Windows is using. For example, when I create a new folder, it is initially named "New Folder" on English Vista. I need to programmatically find what that folder would be named on any language and version of Windows that I might be running on. Anyone have any ideas how to do tha...
Are there any libraries for .NET that deal with determining the Indefinite Article of a noun? My crude attempt is below, which will probably work for 99% of my usage (which is acceptable) just wondering if there are any established alternatives? public static string GetIndefinateArticle(string noun) { if(string.IsNullOrEmpty(noun))...
Can someone point me to where I can download English dictionary as a txt or xml file. I am building a simple app for myself and looking for something what I could start using immediately without learning complex API. Support for synonyms would be great, that is it should be easier to retrieve all the synonyms for particular word. It wo...
monkey patching, duck typing, and even duck punching are common terms d'art in the ruby world. What other fun terms have you come across while discussing code with other programmers? I'm not aware of many outside the ruby space, except perhaps $foo (to mean any substituted idea, like "my current $boss is pissing me off" or some such). F...
I've been quoting this segment from Sun's document for the past few days, and only now do I stop and think about what it's saying, and I can't make sense out of it. Please keep in mind that English is not my first language. Naming conventions << clickable to official source Variables: Except for variables, all instance, class, and c...
Hi all, I'm currently looking at developing a small client that has the ability to read text to speech in a variety of languages. Mainly targeting English & Japanese. So my question is, does anyone know of a library that is capable of reading English and Japanese to speech? My target development language initially, is c# Thanks for...
I'm working on a multi-lingual search engine. I need to map keywords in English to corresponding words in following languages: Bulgarian Catalan Chinese Crotian Czech Danish Dutch Finish French German Greek Hungarian Italian Japanese Korean Lithuanian Litvian Norwegian Polish Portuguese Romanian Russian Slovak Slovenian Spanish Swedish ...
Consider compounds of two nouns, which in natural English would most often appear in the form "noun of noun", e.g. "direction of light", "output of a filter". When programming, we usually write "LightDirection" and "FilterOutput". Now, I have a problem with plural nouns. There are two cases: 1) singular of plural e.g. "union of (two)...
I have a strange problem replacing chars in string... I read a .txt file containing russian text, and starting from a list of letters russian to english (ru=en), I loop the list and I WOULD like to replace russian characters with english characters. The problem is: I can see in the debug the right reading of the russian and the right r...
This is a language-agnostic question - unless you count English as a language. I've got this list of items which can have very long names. For aesthetic purposes, these names must be made shorter in some cases, adding dots (...) to indicate that the name is longer. So for example, if article.name returns this: lorem ipsum dolor sit am...
Trying not to invent wheels :) and thus I am looking for a way to convert schedule(such as say crontab format) into readable English, much like Google Calendar has. Is there something(preferably written in PHP) that could do that? ...
Is there anyway to use the Link Grammar or AbiSource grammar checker in PHP (or C# but I'd prefer php)? I need to have a tree structure for english sentences. Any ideas? The only things I found were in C and I can't use them on a shared host. ...
I'm mainly a Python programmer, and it is often described as being "executable pseudo-code". I have used a little bit of AppleScript, which seems to be the most English-like programming language I have ever seen, because almost operators can be words, and it lets you use "the" anywhere (for example, this stupid example I just came up wi...
Is there any software out there which can do the following? Given an English sentence like "He likes baked beans", I change "he" to "I" and the sentence changes to "I like baked beans" (note the S) or "She has her hair in a ponytail" I change "she" to "he" and the sentence changes to "He has his hair in a ponytail...