Is "Soft Reshape" right in specific case? [closed]

I am a programmer and my native language is not English. And we have interesting question with naming.

We have a command for our software that we call "reshape".

This name is used widely in math and some people use "reshape" as a noun (1, 2) even though English dictionary says that "reshape" is a verb.

So. the question is this.

There are two types of "reshape" (in terms of how it operates) and we want to call them something like "soft reshape" and "hard reshape".

I am wondering if a new command named "soft reshape" sounds OK to native English speakers who already understand what "reshape" command is.

Thanks you!


You could use the following terminology, which would be readily understood by anyone who works with structured data in the common interactive tools.

Given a collection of elements that can be unravelled or flattened into a list:

  • hard reshape assigns the elements of the list to a new structured variable (essentially a list of lists) where the lengths of the component lists are determined by a “shape vector” passed as an argument, and if the number of elements is insufficient for the construction, the assignment fails.

  • soft reshape, where the assignment does not fail, and where the “missing data” is filled with padding elements, repetition of the original list elements, etc.

The main problem with this approach is that the rules for soft reshape are often hard to nail down exactly. Some users want the rules to work one way, and others want them to work some other way.

You might be better off sticking to a single reshape function implemented as a hard reshape, but allowing the shape vector to be calculated by a function.

In my view, difficulties in naming frequently reveal a deeper problem, as much in software as they do in ordinary English writing.