This question has been vote-closed because there is a C# version and it's "off topic".

The question asks for an F# solution (after some editing; it was originally posted poorly), and a comment by "Won't" on this (Meta) very question says it's not valid to ask F# questions because you can convert F# to C#.

Despite being the same framework, F# is not C#. F# is functional (not purely, but still, it exists separately from C# for a reason). It has features like Pattern Matching that C# does not, and this feature was even used in the answer of this question.

To me, this looks like a completely valid question, and it's already been re-opened once.

Can someone please clarify the rules around not being able to have solutions in a different language that is "a bit like" an existing answer in another language or why this question does not give an understanding of the problem and/or code? It has exactly as much information in it as the C# version, which is apparently considered fine.

  • 4
    Look at the close reason for an explanation. – juergen d Nov 6 '13 at 8:29
  • 1
    That's probably because he is asking for code, and not showing his attempts, efforts at all. – aIKid Nov 6 '13 at 8:33
  • 3
    Closed != unfixable. Actually it is a fix-it indicator – juergen d Nov 6 '13 at 8:38
  • 1
    @allKid So we should vote-close every question that doesn't have any document attempts? It's not valid to ask a question if you don't know where to start? How about this one? stackoverflow.com/questions/18653543/… – Danny Tuppeny Nov 6 '13 at 8:41
  • 3
    @DannyTuppeny: The close reason explains the problem and what should be fixed. I don't see what else should be added. – juergen d Nov 6 '13 at 8:45
  • 1
    It is specifically to discourage help vampires from driving quality users away. There is a great invention that specifically helps those who don't know where to start--it's called a Search Engine. You start typing it and it starts telling you things that are similar. For example, if he actually did this, he would have found that this has been asked/answered multiple times already. Here's an example that doesn't suck. – user1228 Nov 6 '13 at 14:45
  • @Won't The only different between that question and this one, is that the example was written in a code block. I've edited this question to also have the example in a code block. Presumably now this question is valid? – Danny Tuppeny Nov 6 '13 at 14:47
  • 1
    @juergend This question now has a code attempt, just like the one Won't linked to. Does this meet your criteria now? – Danny Tuppeny Nov 6 '13 at 14:49
  • @DannyTuppeny: Not really, no. One of the other issues with SO is that it isn't a perfect example of itself. While effort has been made to keep this kind of thing nailed down now, there are many questions from, say, '09 and on that would violate current rules. Better to close as dupe of an authoritative question that already has a decent answer and move on. – user1228 Nov 6 '13 at 14:50
  • Can you explain this better? There is no solution in F# on that question. Why is it any more valid than this one? – Danny Tuppeny Nov 6 '13 at 14:51
  • @DannyTuppeny: Any decent F# programmer should be able to convert C# to F#. Same exact framework, different syntax. And code conversion questions ("here is code make it VB") are strictly off topic. – user1228 Nov 6 '13 at 14:52
  • That is not correct. The question asks for the best way to do something in F#, and the answer is to use a feature that does not exist in C#. Converting a C# solution does not answer the question. – Danny Tuppeny Nov 6 '13 at 15:05

This was the initial question:

Is there a library in either .NET or Python that can, given a number in words, convert it to it's numeric equivalent or that can simply identify part of a sentence as a number in words? I'm looking at only English for now. E.g. "One Thousand Two Hundred" will be converted to 1200.

It was closed as off-topic, probably because it's asking for a library recommendation.

It was then changed to this:

What's the easiest way in either .NET or Python to, given a number in words, convert it to it's numeric equivalent OR given a sentence, to identify part of it as a number in words? I'm looking at only English for now. E.g. "One Thousand Two Hundred" will be converted to 1200.

Now either OP is asking for a library recommendation in a sneaky way, or OP is asking for full code while having tried nothing at all. It was closed again as off-topic, this time because OP has not shown what he/she has tried.

You also went on an edit war with some other users, editing an answer into the question. It doesn't matter that the post was closed and you couldn't post an answer, you shouldn't do it.

| improve this answer | |
  • No; the question ws completey rewritten before any of the last 5 close votes. I'm asking about the question in its current form, which is exactly how it was for all 5 of the these votes. – Danny Tuppeny Nov 6 '13 at 8:40
  • 3
    @DannyTuppeny It was closed with this reason: "Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results." As far as I can see, it was closed correctly. OP hasn't shown attempted solutions. – Stijn Nov 6 '13 at 8:41
  • 1
    90% of questions on SO do not; should we start vote-closing them all? – Danny Tuppeny Nov 6 '13 at 8:43
  • 3
    If they fit a certain close reason, then you should indeed vote to close. – Stijn Nov 6 '13 at 8:43
  • 2
    @DannyTuppeny "90% of questions on SO do not" - it's a completely baseless claim and from my point of view obviously wrong. "should we start vote-closing them all?" - and yes, majority of such questions are getting closed. "SO used to be a helpful resource for people getting started." - mostly because of a huge database of questions already there, and it hasn't changed. I do not think that "write code for me" is a fine question, it will make SO into a database of college assignment solutions. It was never fine and it is not fine now. – sashkello Nov 6 '13 at 11:16
  • By closing any question where the author doesn't know where to start, you're simply pushing away people that are trying to learn programming. If SO's intention is not to cater for these newbies, that's fine - but it wasn't my understanding of the goal. – Danny Tuppeny Nov 6 '13 at 11:33
  • 1
    SO can be whatever it wants to be. It's not a public service. Doesn't stop it being the most pathetically anal FORUM (yeah, I said it) on the web. – LiverpoolsNumber9 Nov 6 '13 at 13:51
  • 2
    @DannyTuppeny SO is not designed to be a resource that will hold a user's hand through the first steps of learning to code. It's simply not what the site was designed for, or and it doesn't have the capacity to meet that need effectively. If that's what you need help with you're much better off taking a class, using an online tutorial designed for that task, reading a book designed to do that, etc. SO is here to answer specific questions to specific programming problems, not to be the be all end all of programming resources. – Servy Nov 6 '13 at 16:46
  • 1
    @Servy Did you even read the question? It's not about baby syntax, it's a simple algorithm, and my solution used Pattern Matching. How is this first steps of learning to code? – Danny Tuppeny Nov 6 '13 at 16:47
  • 2
    @DannyTuppeny My comment was replying to your last comment, "you're simply pushing away people that are trying to learn programming". I feel that the main question is answered quite effectively by the answer here. Clearly this particular user is capable of making an attempt and doing some research and experimenting to at least begin to find a solution. If he isn't willing to do that, then this simply isn't the proper site for him. – Servy Nov 6 '13 at 16:54
  • @Servy Can you please explain what the C# version of the question has additionally over this question, that shows "making an attempt"? It is a near identical question, for a different language. – Danny Tuppeny Nov 6 '13 at 16:56
  • The answer commented on here is incorrect. It discusses the original question, which was not the state when the first recent close vote was cast. The whole on-hold/close process is designed for questions to be improved. It was improved. This answer is based on completely the wrong question. – Danny Tuppeny Nov 6 '13 at 16:57
  • 2
    @DannyTuppeny You're correct, that other question should be closed for exactly the same reason. That it isn't closed doesn't mean that this question should be opened, just that the other question should be closed. – Servy Nov 6 '13 at 16:59
  • 1
    @DannyTuppeny The second half of this answer most certainly applies to its current state. It doesn't just discuss the first revision, it discusses the reason for the first closure and the latest. Did you perhaps stop reading this answer half way through? – Servy Nov 6 '13 at 17:00
  • The only relevant part is "OP is asking for full code while having tried nothing at all"; and the "full code" part is an assumption. Having tried nothing is not exactly uncommon for an algorithm-based question, is it? – Danny Tuppeny Nov 6 '13 at 17:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .