Skip to main content

Handling Fragments

Sometimes the text in requests may not be full sentences but instead unfinished sentences or sentence fragments.

Because Sapling's models are trained to work with text produced as users are typing, it should do a reasonable job of not making recommendations for incomplete words. However, you may still find that it suggests capitalization and terminating punctuation more frequently than you'd like.

To handle this, Sapling offers the ignore_edit_types argument in its edits endpoint. This allows you to ignore specific edit types, including capitalization and punctuation.

Let us know if you need additional support for fragments.