|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
namespace WetPancake |
|
|
|
|
|
|
|
|
|
/// This module contains all the public functions in Wet Pancake NuGet package, which enables you to generate random text. |
|
|
|
|
/// This module contains all the public functions in the Wet Pancake NuGet package, |
|
|
|
|
/// which enables you to generate random text. |
|
|
|
|
module Pancake = |
|
|
|
|
|
|
|
|
|
open SystemServices |
|
|
|
@ -152,6 +153,11 @@ module Pancake =
|
|
|
|
|
return files |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// ============================================================================================ |
|
|
|
|
// DO NOT FORGET TO WRITE TESTS FOR THESE TWO FUNCTIONS -- OR THE CLEANING FUNCTION ABOVE -- |
|
|
|
|
// ============================================================================================ |
|
|
|
|
|
|
|
|
|
// TODO: Add XML comment for RequestCleanTextAsync. |
|
|
|
|
let RequestCleanTextAsync (gibberishLevel: int) (sentences: int) = |
|
|
|
|
async { |
|
|
|
|
let! text = RequestTextAsync gibberishLevel sentences |
|
|
|
@ -159,6 +165,7 @@ module Pancake =
|
|
|
|
|
return cleanText |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// TODO: Add XML comment for RequestCleanTextFromFileAsync. |
|
|
|
|
let RequestCleanTextFromFileAsync (gibberishLevel: int) (sentences: int) (filePath: string) = |
|
|
|
|
async { |
|
|
|
|
let! text = RequestTextFromFileAsync gibberishLevel sentences filePath |
|
|
|
|