The sword like appendage is the ovipositor, which is used to deposit eggs into plant tissue.
Photos are the property of Jack Hoying