diff --git a/Content.Shared/NameModifier/EntitySystems/NameModifierSystem.cs b/Content.Shared/NameModifier/EntitySystems/NameModifierSystem.cs
index 2e7c8054b3b..33f6efbed50 100644
--- a/Content.Shared/NameModifier/EntitySystems/NameModifierSystem.cs
+++ b/Content.Shared/NameModifier/EntitySystems/NameModifierSystem.cs
@@ -32,6 +32,18 @@ public sealed class NameModifierSystem : EntitySystem
Dirty(entity);
}
+ ///
+ /// Returns the base name of the entity, without any modifiers applied.
+ /// If the entity doesn't have a ,
+ /// this returns the entity's metadata name.
+ ///
+ public string GetBaseName(Entity entity)
+ {
+ if (Resolve(entity, ref entity.Comp, logMissing: false))
+ return entity.Comp.BaseName;
+ return Name(entity);
+ }
+
///
/// Raises a to gather modifiers and
/// updates the entity's name to its base name with modifiers applied.