With user permission, on-device text segmentation, e.g., using neural networks, is performed to identify segments within selected text, e.g., contents of a clipboard. The identified segments are provided in a user interface to enable users to perform corresponding actions. For example, multiple paste options are provided, including options to paste entire clipboard contents or an identified text segment. The techniques can be implemented as a feature of an operating system and enable users to take actions with text segments even when software applications do not support partial copying of text