Sentences

org.specs2.text.Sentences
See theSentences companion object
trait Sentences

This does some simple replacements in sentences to negate them.

For example: the cat must sleep => the cat must not sleep

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Sentences.type

Members list

Concise view

Value members

Concrete methods

def negateSentence(sentence: String): String

replace the first occurrence of a verb in the negations table with its negation.

replace the first occurrence of a verb in the negations table with its negation.

We first try to negate an existing negation

Attributes