Pseudo.NET

Pseudo.NET for teachers

Students write pseudocode in their own words, and it runs. This page says plainly what that gives you, what it costs to set up, and where it falls short.

What it is

A student writes an algorithm as free-form pseudocode: English, French, Spanish and other languages, braces or indentation only, arrows or equals signs, whatever they naturally write. A local language model reads it and the compiler turns it into a C# program that runs. There is no syntax to memorise and no error about a missing semicolon. The generated C# can be shown afterwards as a real program to read.

It is a free, open-source project (MIT licence) by one person. It is not a product with support, and it is not an official tool of any exam board.

What you need

Try it first without Ollama. The six ready-made samples ship with their answers, so this works with only the .NET SDK installed:

dotnet new install PseudoNet.Templates
dotnet new pseudo-bubble-sort -n Try
cd Try
dotnet run

That shows the idea in a couple of minutes. Typing your own pseudocode is what needs the 5 GB model.

Privacy

By default the model runs on your computer and nothing is sent anywhere: no account, no API key. This is the setup we recommend with students.

There is an optional alternative for trying the language without installing Ollama: connect your own account with the Claude API or an OpenAI-compatible API. The pseudocode is then sent to that service and is subject to its terms, and each call is billed by the provider. The compiler warns each time it sends something. Decide whether that is acceptable for your students before using it. See the README for the settings. This option is available from version 0.4.5 of the extension and version 0.1.3 of the dotnet new templates. We have not measured how well those remote models do.

What we tested, and the results

We would rather you know the limits before you try it. All tests use the default local model and the real compiler, and every program, expected output and generated C# is in the repository. Each one was run once, on a small number of programs.

A wrong program should stay wrong

For a debugging exercise, the compiler must transcribe the student's logic, mistakes included, so the student sees it fail. We wrote six deliberately wrong programs (an off-by-one loop, a wrong comparison, an inverted test, a return inside a loop, operator precedence, a total that is never reset). The mistake was kept in five of them. In the sixth, the student's comment stating the goal ("print 6, 12, 18") made the model quietly repair the code; the same program without the comment was kept wrong.

So, for debugging exercises, do not write the expected result in a comment, and when the output surprises you, look at the generated C#. A larger model (qwen2.5-coder:14b, 9 GB, slower) kept every mistake in our test.

Exam-style reference-sheet pseudocode

We wrote ten small programs in the style of the AP Computer Science Principles reference sheet (from memory, not copied from the official sheet): arrow assignment, DISPLAY, REPEAT n TIMES, REPEAT UNTIL, IF/ELSE, NOT, MOD, lists. With version 0.4.5, five of the ten give the right output.

One common pattern, in several phrasings

"Add up the numbers below 100 that are divisible by 3 or by 5" is written six ways (English, Spanish and French, two each). All six give the same result as a Python reference (2318) with the released version.

Who it is probably for

Teachers and trainers who want to run pseudocode (their own, or an exam board's style) and show what it does, and students who already think in steps and want to see them execute. It is probably not the right tool for teaching a first programming language: Python or Scratch are simpler to install and better supported.

Tell me what happens

If you try it, even for ten minutes, I would like to hear what worked, what broke, and which programs your class writes: open a discussion (English or French). Reports of failures are as useful as successes.

Get it on the Marketplace See the samples