You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// basically, skip all our adverbs, inflect only the first non-adverb word we find (which is hopefully a verb) and then keep everything after unchanged
805
+
// this will properly handle "successfully finish doing" and "properly manage to do"
806
+
// but not "somehow finish doing" which will get turned into "somehows finish doing" :(
807
+
// todo: fix that
808
+
var/list/words= splittext(use_verb, "")
809
+
if(length(words) >1)
810
+
var/last_adverb=1
811
+
for(var/word_indexin1tolength(words))
812
+
if(text_ends_with(words[word_index], "ly"))
813
+
last_adverb = max(word_index, last_adverb)
814
+
use_verb = words[last_adverb]
815
+
// This overengineered nonsense ensures that we shouldn't end up with any doubled or missing spaces.
0 commit comments